Skip to content

Commit

Permalink
fix parent_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Dec 11, 2024
1 parent 5b9bd66 commit 4e7256a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ where
let consistent_view = ConsistentDbView::new_with_latest_tip(self.provider.clone())?;

let input = self
.compute_trie_input(consistent_view.clone(), block.parent_hash)
.compute_trie_input(consistent_view.clone(), block.header().parent_hash())
.map_err(|e| InsertBlockErrorKindTwo::Other(Box::new(e)))?;
let state_root_config = StateRootConfig { consistent_view, input: Arc::new(input) };
let state_root_task = StateRootTask::new(state_root_config);
Expand Down Expand Up @@ -2274,7 +2274,7 @@ where
if !persistence_in_progress {
let consistent_view = ConsistentDbView::new_with_latest_tip(self.provider.clone())?;
let mut input = self
.compute_trie_input(consistent_view.clone(), block.parent_hash)
.compute_trie_input(consistent_view.clone(), block.header().parent_hash())
.map_err(|e| InsertBlockErrorKindTwo::Other(Box::new(e)))?;
// Extend with block we are validating root for.
input.append_ref(&hashed_state);
Expand Down

0 comments on commit 4e7256a

Please sign in to comment.