Skip to content

Commit 2551b2a

Browse files
committed
Small improvement
1 parent 30a4edf commit 2551b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/rawdb/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ func InspectDatabase(db ethdb.Database) error {
396396
}
397397
// Count receipts in ancient db
398398
ancientReceipts := counter(0)
399-
for blockNumber := uint64(0); blockNumber <= uint64(ancients-1); blockNumber++ {
399+
for blockNumber := uint64(0); blockNumber < uint64(ancients); blockNumber++ {
400400
data, err := db.Ancient(freezerReceiptTable, blockNumber)
401401
if err != nil {
402402
log.Error("Error reading ancient receipts from block", "number", blockNumber, "err", err)

0 commit comments

Comments
 (0)