From 0d691fee1697d18155cd23ccde0f1949ee90a289 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Jun 2023 19:53:22 +0200 Subject: [PATCH] fix: mark state as synced when transition to live sync (#3187) --- crates/consensus/beacon/src/engine/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/consensus/beacon/src/engine/mod.rs b/crates/consensus/beacon/src/engine/mod.rs index 5bb7f5ef2f..43175b86f8 100644 --- a/crates/consensus/beacon/src/engine/mod.rs +++ b/crates/consensus/beacon/src/engine/mod.rs @@ -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(