Commit db81b8e3 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #2114 from ethereum-optimism/fix/l2geth-startup-logic

l2geth: fix startup logic for repairing queue index
parents 3659b731 bc342ec4
---
'@eth-optimism/l2geth': patch
---
Fix queue index comparison
...@@ -348,10 +348,10 @@ func (s *SyncService) initializeLatestL1(ctcDeployHeight *big.Int) error { ...@@ -348,10 +348,10 @@ func (s *SyncService) initializeLatestL1(ctcDeployHeight *big.Int) error {
qi := tx.GetMeta().QueueIndex qi := tx.GetMeta().QueueIndex
// When the queue index is set // When the queue index is set
if qi != nil { if qi != nil {
if qi == queueIndex { if *qi == *queueIndex {
log.Info("Found correct staring queue index", "queue-index", qi) log.Info("Found correct staring queue index", "queue-index", *qi)
} else { } 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 queueIndex = qi
} }
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment