Skip to content

Commit accdcd9

Browse files
committed
fix storageList memory accounting
1 parent fe7b7ce commit accdcd9

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)