Skip to content

Commit 13cb486

Browse files
authored
Merge pull request #2614 from CortexFoundation/dev
fix storageList memory accounting
2 parents 51cb66f + accdcd9 commit 13cb486

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/state/snapshot/difflayer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func (dl *diffLayer) StorageList(accountHash common.Hash) ([]common.Hash, bool)
566566
}
567567
slices.SortFunc(storageList, common.Hash.Cmp)
568568
dl.storageList[accountHash] = storageList
569-
dl.memory += uint64(len(dl.storageList)*common.HashLength + common.HashLength)
569+
dl.memory += uint64(len(storageList)*common.HashLength + common.HashLength)
570570
return storageList, destructed
571571
}
572572

0 commit comments

Comments
 (0)