reth icon indicating copy to clipboard operation
reth copied to clipboard

Integrate OnStateHook in executor

Open mattsse opened this issue 1 year ago • 0 comments

This should unblock #11161

with #11068 we can now hook into state updates on system calls, we also need this for all txs in the executor.

this can be achieved by also introducing the hook generic on the executor types, similar to what we did with:

https://github.com/paradigmxyz/reth/blob/3297dcb4eb0e26eeac7940ec7adcd64b8ee19fbc/crates/evm/src/execute.rs#L37-L45

but accepting a OnStateHook instance.

then we'd also need to call the hook before we commit the regular txs https://github.com/paradigmxyz/reth/blob/3297dcb4eb0e26eeac7940ec7adcd64b8ee19fbc/crates/ethereum/evm/src/execute.rs#L189-L189

mattsse avatar Sep 30 '24 09:09 mattsse