Skip to content

Commit

Permalink
Merge pull request #1970 from OffchainLabs/fix-inboxreader-dupbatches…
Browse files Browse the repository at this point in the history
…handling

Fix the check for duplicate sequencerBatches in indox_reader
  • Loading branch information
joshuacolvin0 authored Nov 21, 2023
2 parents c8972cf + 44a15af commit 9f9fef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arbnode/inbox_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ func (r *InboxReader) run(ctx context.Context, hadError bool) error {
} else if err != nil {
// Unknown error (database error?)
return err
} else if haveAcc == batch.BeforeInboxAcc {
} else if haveAcc == batch.AfterInboxAcc {
// Skip this batch, as we already have it in the database
sequencerBatches = sequencerBatches[1:]
} else {
// The first batch BeforeInboxAcc matches, but this batch doesn't,
// The first batch AfterInboxAcc matches, but this batch doesn't,
// so we'll successfully reorg it when we hit the addMessages
break
}
Expand Down

0 comments on commit 9f9fef4

Please sign in to comment.