Skip to content

Commit

Permalink
fix(consensus): call finalize_block when finalized block changes. (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabnock01 authored Jul 12, 2023
1 parent 9924090 commit 637506f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ where
.ok_or_else(|| {
Error::Provider(ProviderError::UnknownBlockHash(finalized_block_hash))
})?;
self.blockchain.finalize_block(finalized.number);
self.blockchain.set_finalized(finalized.header.seal(finalized_block_hash));
}
Ok(())
Expand Down

0 comments on commit 637506f

Please sign in to comment.