mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
rm special iterator case
This commit is contained in:
parent
48b1127c66
commit
bfeb828460
1 changed files with 1 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue