Skip to content

Commit

Permalink
Merge pull request #2209 from OffchainLabs/sync_progress_map
Browse files Browse the repository at this point in the history
syncProgressMap: bug fix
  • Loading branch information
tsahee committed Mar 28, 2024
2 parents f93d2c3 + cb01da3 commit ff9e72a
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 ff9e72a

Please sign in to comment.