feat(trie): allow passing intermediate nodes to overlay state root (#9839)

This commit is contained in:
Roman Krasiuk
2024-07-26 08:33:19 -07:00
committed by GitHub
parent 77f5ed1a7b
commit 5688739499
6 changed files with 35 additions and 17 deletions

View File

@ -288,6 +288,7 @@ impl Command {
let (state_root, trie_updates) = StateRoot::overlay_root_with_updates(
provider_factory.provider()?.tx_ref(),
hashed_post_state.clone(),
Default::default(),
)?;
if state_root != block_with_senders.state_root {

View File

@ -152,6 +152,7 @@ impl Command {
let (in_memory_state_root, in_memory_updates) = StateRoot::overlay_root_with_updates(
provider.tx_ref(),
execution_outcome.hash_state_slow(),
Default::default(),
)?;
if in_memory_state_root == block.state_root {