Skip to content

Commit

Permalink
engine: don't skip state root when insert downloaded block (#147)
Browse files Browse the repository at this point in the history
* engine: don't skip state root when insert downloaded block

* fix lint

---------

Co-authored-by: Keefe Liu <keefe.l@users.noreply.github.com>
  • Loading branch information
keefel and Keefe Liu authored Sep 18, 2024
1 parent 190d54a commit afc0917
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1727,10 +1727,10 @@ where
BlockchainTreeAction::InsertDownloadedPayload { block } => {
let downloaded_num_hash = block.num_hash();
let start = Instant::now();
match self.blockchain.insert_block_without_senders(
block.clone(),
BlockValidationKind::SkipStateRootValidation,
) {
match self
.blockchain
.insert_block_without_senders(block.clone(), BlockValidationKind::Exhaustive)
{
Ok(status) => {
match status {
InsertPayloadOk::Inserted(BlockStatus::Valid(_)) => {
Expand Down

0 comments on commit afc0917

Please sign in to comment.