From 4af7991e78162afc4b611cf571b37fcdc89df048 Mon Sep 17 00:00:00 2001 From: ganeshvanahalli Date: Wed, 15 Nov 2023 10:43:56 -0600 Subject: [PATCH] Fix the check for duplicate sequencerBatches in indox_reader --- arbnode/inbox_reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arbnode/inbox_reader.go b/arbnode/inbox_reader.go index 6ce9fd7172..9c830e3c89 100644 --- a/arbnode/inbox_reader.go +++ b/arbnode/inbox_reader.go @@ -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 }