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

@ -88,9 +88,8 @@ impl EngineHookEvent {
pub enum EngineHookAction {
/// Notify about a [SyncState] update.
UpdateSyncState(SyncState),
/// Read the last relevant canonical hashes from the database and update the block indices of
/// the blockchain tree.
RestoreCanonicalHashes,
/// Connect blocks buffered during the hook execution to canonical hashes.
ConnectBufferedBlocks,
}
/// An error returned by [hook][`EngineHook`].