diff --git a/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker.go b/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker.go index b5d60815b6..fbf588bae1 100644 --- a/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker.go +++ b/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker.go @@ -157,6 +157,7 @@ func (t *SyncProgressTracker) ClearMeta() { log.Debug("Clear sync progress tracker meta") + t.triggered = false t.lastSyncedBlockID = nil t.lastSyncedBlockHash = common.Hash{} t.outOfSync = false diff --git a/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker_test.go b/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker_test.go index 8a144d96a3..dd5bb47f1a 100644 --- a/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker_test.go +++ b/packages/taiko-client/driver/chain_syncer/beaconsync/progress_tracker_test.go @@ -52,7 +52,7 @@ func (s *BeaconSyncProgressTrackerTestSuite) TestSyncProgressed() { func (s *BeaconSyncProgressTrackerTestSuite) TestClearMeta() { s.t.triggered = true s.t.ClearMeta() - s.True(s.t.triggered) + s.False(s.t.triggered) } func (s *BeaconSyncProgressTrackerTestSuite) TestHeadChanged() {