From 36cb9a7d6dfb52e5ff047625ef7535e84447eaf0 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 19 Mar 2025 09:07:02 +0100 Subject: [PATCH] core/rawdb: fix comparison in test --- core/rawdb/chain_iterator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/chain_iterator_test.go b/core/rawdb/chain_iterator_test.go index b6cc5388a4..75bd5a9a94 100644 --- a/core/rawdb/chain_iterator_test.go +++ b/core/rawdb/chain_iterator_test.go @@ -245,7 +245,7 @@ func TestPruneTransactionIndex(t *testing.T) { if block.NumberU64() < pruneBlock && num != nil { t.Fatalf("TxLookup entry not removed: %x -> %v", tx.Hash(), num) } - if block.NumberU64() > pruneBlock && (num == nil || *num != block.NumberU64()) { + if block.NumberU64() >= pruneBlock && (num == nil || *num != block.NumberU64()) { t.Fatalf("wrong TxLookup entry after pruning: %x -> %v", tx.Hash(), num) } }