Commit bc342ec4 authored by Mark Tyneway's avatar Mark Tyneway Committed by Matthew Slipper

l2geth: fix startup logic for repairing queue index

parent a1f14779
---
'@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