taikoxyz / taiko-reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
Apache License 2.0
39 stars 36 forks source link

Custom payload building #32

Closed adaki2004 closed 2 months ago

adaki2004 commented 2 months ago

Please see if we can reuse this idea somehow. (There is a big printer function print_block_data, you can just ignore for now, it helped me debugging.)

Basically what i do is, i get a new (default) mutable payload (payload_clone) and in-place modifying the block body, txn list, recalculate hash, etc. in modify_payload_block().

(Note: I tried Optimism payload building, but the problem i saw with OptimismPayloadAttributes is , that it differs what we have now (EthPayloadBuilderAttributes)so we would need to adapt all the deps (node.rs, payload.rs, etc.))

adaki2004 commented 2 months ago

Closing as done already on diff. branch.