mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core/rawdb: fix comparison in test
This commit is contained in:
parent
a20cdbc6f9
commit
36cb9a7d6d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue