mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
fix(sync-service): only add queue index when message index is not zero (#682)
* fix(sync-service): increase queue index only when L1 message index is not zero * bump version --------- Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
This commit is contained in:
parent
3cf590b270
commit
61e8de9c3f
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue