Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quick-tables-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Fix queue index comparison
6 changes: 3 additions & 3 deletions l2geth/rollup/sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ func (s *SyncService) initializeLatestL1(ctcDeployHeight *big.Int) error {
qi := tx.GetMeta().QueueIndex
// When the queue index is set
if qi != nil {
if qi == queueIndex {
log.Info("Found correct staring queue index", "queue-index", qi)
if *qi == *queueIndex {
log.Info("Found correct staring queue index", "queue-index", *qi)
} else {
log.Info("Found incorrect staring queue index, fixing", "old", queueIndex, "new", qi)
log.Info("Found incorrect staring queue index, fixing", "old", *queueIndex, "new", *qi)
queueIndex = qi
}
break
Expand Down