Skip to content

Commit

Permalink
fix(sync-service): only add queue index when message index is not zero (
Browse files Browse the repository at this point in the history
#682)

* fix(sync-service): increase queue index only when L1 message index is not zero

* bump version

---------

Co-authored-by: Péter Garamvölgyi <[email protected]>
  • Loading branch information
colinlyguo and Thegaram authored Mar 27, 2024
1 parent 3cf590b commit 61e8de9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
VersionMajor = 5 // Major version component of the current release
VersionMinor = 1 // Minor version component of the current release
VersionPatch = 26 // Patch version component of the current release
VersionPatch = 27 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down
4 changes: 3 additions & 1 deletion rollup/sync_service/sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ func (s *SyncService) fetchMessages() {
}

for _, msg := range msgs {
queueIndex++
if msg.QueueIndex > 0 {
queueIndex++
}
// check if received queue index matches expected queue index
if msg.QueueIndex != queueIndex {
log.Error("Unexpected queue index in SyncService", "expected", queueIndex, "got", msg.QueueIndex, "msg", msg)
Expand Down

0 comments on commit 61e8de9

Please sign in to comment.