From bfeb8284607ab7b260e9142ff9db4afdf22548a5 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 24 Mar 2026 21:08:18 +0000 Subject: [PATCH] rm special iterator case --- core/rawdb/chain_iterator.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go index 3232c7b0b4..89b0f3f684 100644 --- a/core/rawdb/chain_iterator.go +++ b/core/rawdb/chain_iterator.go @@ -422,12 +422,7 @@ func PruneTransactionIndex(db ethdb.Database, pruneBlock uint64) { go func() { defer wg.Done() - var it ethdb.Iterator - if rangeStart == 0 { - it = NewKeyLengthIterator(db.NewIterator(txLookupPrefix, nil), common.HashLength+len(txLookupPrefix)) - } else { - it = NewKeyLengthIterator(db.NewIterator(txLookupPrefix, []byte{rangeStart}), common.HashLength+len(txLookupPrefix)) - } + it := NewKeyLengthIterator(db.NewIterator(txLookupPrefix, []byte{rangeStart}), common.HashLength+len(txLookupPrefix)) defer it.Release() batch := db.NewBatch()