mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/state/snapshot: fix StorageList memory accounting
This commit is contained in:
parent
52ae75afcd
commit
424c2a5f58
1 changed files with 1 additions and 1 deletions
|
|
@ -465,6 +465,6 @@ func (dl *diffLayer) StorageList(accountHash common.Hash) []common.Hash {
|
||||||
|
|
||||||
storageList := slices.SortedFunc(maps.Keys(dl.storageData[accountHash]), common.Hash.Cmp)
|
storageList := slices.SortedFunc(maps.Keys(dl.storageData[accountHash]), common.Hash.Cmp)
|
||||||
dl.storageList[accountHash] = storageList
|
dl.storageList[accountHash] = storageList
|
||||||
dl.memory += uint64(len(dl.storageList)*common.HashLength + common.HashLength)
|
dl.memory += uint64(len(storageList)*common.HashLength + common.HashLength)
|
||||||
return storageList
|
return storageList
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue