mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
drop unused diskStorageIterator fields
This commit is contained in:
parent
957a3602d9
commit
9c70bfa011
1 changed files with 2 additions and 4 deletions
|
|
@ -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),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue