mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Decrease children size instead of dirties size when marking dirties as cleaned up in trie cleaner Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
This commit is contained in:
parent
e4de0e82a2
commit
dabaf392a7
1 changed files with 1 additions and 1 deletions
|
|
@ -806,7 +806,7 @@ func (c *cleaner) Put(key []byte, rlp []byte) error {
|
|||
delete(c.db.dirties, hash)
|
||||
c.db.dirtiesSize -= common.StorageSize(common.HashLength + int(node.size))
|
||||
if node.children != nil {
|
||||
c.db.dirtiesSize -= common.StorageSize(cachedNodeChildrenSize + len(node.children)*(common.HashLength+2))
|
||||
c.db.childrenSize -= common.StorageSize(cachedNodeChildrenSize + len(node.children)*(common.HashLength+2))
|
||||
}
|
||||
// Move the flushed Node into the clean Cache to prevent insta-reloads
|
||||
if c.db.cleans != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue