fix(consensus): call finalize_block when finalized block changes. (#3731)

This commit is contained in:
Sabnock
2023-07-12 12:39:08 -05:00
committed by GitHub
parent 99240906a8
commit 637506f17f

View File

@@ -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(())