mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor(engine, tree): connect buffered blocks on pruner finish (#4613)
This commit is contained in:
@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user