Skip to content

Commit

Permalink
Merge pull request #2488 from OffchainLabs/fix-batch-out-of-order-log
Browse files Browse the repository at this point in the history
Fix "sequencer batches out of order" log
  • Loading branch information
joshuacolvin0 authored Jul 16, 2024
2 parents a164d9a + fec8dea commit 0ce293d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbnode/sequencer_inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (i *SequencerInbox) LookupBatchesInRange(ctx context.Context, from, to *big
seqNum := parsedLog.BatchSequenceNumber.Uint64()
if lastSeqNum != nil {
if seqNum != *lastSeqNum+1 {
return nil, fmt.Errorf("sequencer batches out of order; after batch %v got batch %v", lastSeqNum, seqNum)
return nil, fmt.Errorf("sequencer batches out of order; after batch %v got batch %v", *lastSeqNum, seqNum)
}
}
lastSeqNum = &seqNum
Expand Down

0 comments on commit 0ce293d

Please sign in to comment.