Skip to content

Commit

Permalink
fix: donot wrap trie_output
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Sep 12, 2024
1 parent f3480e4 commit 25ad4e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,6 @@ where
let (state_root, trie_output) =
ParallelStateRoot::new(consistent_view, hashed_state.clone())
.incremental_root_with_updates()
.map(|(root, updates)| (root, Some(updates)))
.map_err(ProviderError::from)?;

if state_root != block.state_root {
Expand All @@ -1824,7 +1823,7 @@ where
senders: Arc::new(block.senders),
execution_output: Arc::new(ExecutionOutcome::from((output, block_number))),
hashed_state: Arc::new(hashed_state),
trie: Arc::new(trie_output.unwrap_or_default()),
trie: Arc::new(trie_output),
};

if self.state.tree_state.canonical_block_hash() == executed.block().parent_hash {
Expand Down

0 comments on commit 25ad4e6

Please sign in to comment.