fix: mark state as synced when transition to live sync (#3187)

This commit is contained in:
Matthias Seitz
2023-06-15 19:53:22 +02:00
committed by GitHub
parent 2588d9282f
commit 0d691fee16

View File

@ -1193,7 +1193,10 @@ where
sync_target_state.finalized_block_hash,
) {
Ok(synced) => {
if !synced {
if synced {
// we're consider this synced and transition to live sync
self.sync_state_updater.update_sync_state(SyncState::Idle);
} else {
// We don't have the finalized block in the database, so
// we need to run another pipeline.
self.sync.set_pipeline_sync_target(