Skip to content

Commit

Permalink
fix(engine): state retrieval for parallel root with persisted parent
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Sep 17, 2024
1 parent 192f59f commit 62bc10c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,10 @@ where
for block in blocks.iter().rev() {
input.append_cached_ref(block.trie_updates(), block.hashed_state())
}
} else {
// The block attaches to canonical persisted parent.
let revert_state = consistent_view.revert_state(parent_hash)?;
input.append(revert_state);
}

// Extend with block we are validating root for.
Expand Down

0 comments on commit 62bc10c

Please sign in to comment.