From 9c23d32fe330db0e676cbc89e33fd3b72945d9af Mon Sep 17 00:00:00 2001 From: Bosul Mun Date: Fri, 1 May 2026 12:00:47 +0200 Subject: [PATCH] cmd/era: remove redundant error check --- cmd/era/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/era/main.go b/cmd/era/main.go index 1c26f44ad4..43279e7001 100644 --- a/cmd/era/main.go +++ b/cmd/era/main.go @@ -337,9 +337,6 @@ func checkAccumulator(e era.Era) error { // accumulation across the entire set and are verified at the end. for it.Next() { // 1) next() walks the block index, so we're able to implicitly verify it. - if it.Error() != nil { - return fmt.Errorf("error reading block %d: %w", it.Number(), it.Error()) - } block, receipts, err := it.BlockAndReceipts() if err != nil { return fmt.Errorf("error reading block %d: %w", it.Number(), err)