perf(tree): re-use intermediate nodes (#9836)

This commit is contained in:
Roman Krasiuk
2024-08-13 12:57:22 -07:00
committed by GitHub
parent 8a802dab60
commit ac3d62ba02
16 changed files with 329 additions and 53 deletions

View File

@ -288,7 +288,6 @@ 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

@ -154,7 +154,6 @@ 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 {