drop unused diskStorageIterator fields

This commit is contained in:
phrwlk 2026-01-07 23:27:14 +02:00 committed by GitHub
parent 957a3602d9
commit 9c70bfa011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,16 +305,14 @@ func (it *diffStorageIterator) Release() {}
// aggregated buffer and the persistent disk layer as the data sources. The // aggregated buffer and the persistent disk layer as the data sources. The
// staleness of the diff iterator is sufficient to invalidate the iterator pair. // staleness of the diff iterator is sufficient to invalidate the iterator pair.
type diskStorageIterator struct { type diskStorageIterator struct {
account common.Hash it ethdb.Iterator
it ethdb.Iterator
} }
// newDiskStorageIterator creates a storage iterator over the persistent state. // newDiskStorageIterator creates a storage iterator over the persistent state.
func newDiskStorageIterator(db ethdb.KeyValueStore, account common.Hash, seek common.Hash) StorageIterator { func newDiskStorageIterator(db ethdb.KeyValueStore, account common.Hash, seek common.Hash) StorageIterator {
pos := common.TrimRightZeroes(seek[:]) pos := common.TrimRightZeroes(seek[:])
return &diskStorageIterator{ return &diskStorageIterator{
account: account, it: db.NewIterator(append(rawdb.SnapshotStoragePrefix, account.Bytes()...), pos),
it: db.NewIterator(append(rawdb.SnapshotStoragePrefix, account.Bytes()...), pos),
} }
} }