mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(eecutor): send EvmState in state hook (#13025)
This commit is contained in:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user