Skip to content

Commit

Permalink
syncProgressMap: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Mar 28, 2024
1 parent f93d2c3 commit cb01da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution/gethexec/sync_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
}
}
Expand Down

0 comments on commit cb01da3

Please sign in to comment.