From cb01da308eb56dd23c750d5cab07db0a072c65c7 Mon Sep 17 00:00:00 2001 From: Tsahi Zidenberg Date: Thu, 28 Mar 2024 11:33:20 -0600 Subject: [PATCH] syncProgressMap: bug fix --- execution/gethexec/sync_monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution/gethexec/sync_monitor.go b/execution/gethexec/sync_monitor.go index 84f45083e9..35256f72a0 100644 --- a/execution/gethexec/sync_monitor.go +++ b/execution/gethexec/sync_monitor.go @@ -55,7 +55,7 @@ func (s *SyncMonitor) SyncProgressMap() map[string]interface{} { if s.consensus.Synced() { built, err := s.exec.HeadMessageNumber() consensusSyncTarget := s.consensus.SyncTargetMessageCount() - if err != nil && built+1 >= consensusSyncTarget { + if err == nil && built+1 >= consensusSyncTarget { return make(map[string]interface{}) } }