reth
reth copied to clipboard
feat(perf): integrate OnStateHook in executor
Closes: #11330
It can be used for instance with state root calculation like this
let (tx, rx) = channel();
// spawn SR
p.executor().execute_with_hook(.., |state| tx.send(state.clone()));