feat(eecutor): send EvmState in state hook (#13025)

This commit is contained in:
Federico Gimenez
2024-11-30 13:37:05 +01:00
committed by GitHub
parent 0ff2827a79
commit 489d4e8595
5 changed files with 46 additions and 60 deletions

View File

@ -48,7 +48,7 @@ use reth_revm::database::StateProviderDatabase;
use reth_stages_api::ControlFlow;
use reth_trie::{updates::TrieUpdates, HashedPostState, TrieInput};
use reth_trie_parallel::root::{ParallelStateRoot, ParallelStateRootError};
use revm_primitives::ResultAndState;
use revm_primitives::EvmState;
use std::{
cmp::Ordering,
collections::{btree_map, hash_map, BTreeMap, VecDeque},
@ -2212,7 +2212,7 @@ where
// TODO: create StateRootTask with the receiving end of a channel and
// pass the sending end of the channel to the state hook.
let noop_state_hook = |_result_and_state: &ResultAndState| {};
let noop_state_hook = |_state: &EvmState| {};
let output = self.metrics.executor.execute_metered(
executor,
(&block, U256::MAX).into(),