refactor(engine, tree): connect buffered blocks on pruner finish (#4613)

This commit is contained in:
Alexey Shekhirin
2023-09-19 17:36:24 +01:00
committed by GitHub
parent 1406142af8
commit 57c10e5b65
7 changed files with 63 additions and 36 deletions

View File

@ -549,15 +549,15 @@ where
self.tree.finalize_block(finalized_block)
}
fn restore_canonical_hashes_and_finalize(
fn connect_buffered_blocks_to_canonical_hashes_and_finalize(
&self,
last_finalized_block: BlockNumber,
) -> Result<()> {
self.tree.restore_canonical_hashes_and_finalize(last_finalized_block)
self.tree.connect_buffered_blocks_to_canonical_hashes_and_finalize(last_finalized_block)
}
fn restore_canonical_hashes(&self) -> Result<()> {
self.tree.restore_canonical_hashes()
fn connect_buffered_blocks_to_canonical_hashes(&self) -> Result<()> {
self.tree.connect_buffered_blocks_to_canonical_hashes()
}
fn make_canonical(&self, block_hash: &BlockHash) -> Result<CanonicalOutcome> {