Skip to content

Commit 2843001

Browse files
holimankaralabe
authored andcommitted
trie: fix overflow in write cache parent tracking (#18165)
trie/database: fix overflow in parent tracking
1 parent 9d5e3e0 commit 2843001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎trie/database.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ type cachedNode struct {
141141
node node // Cached collapsed trie node, or raw rlp data
142142
size uint16 // Byte size of the useful cached data
143143

144-
parents uint16 // Number of live nodes referencing this one
144+
parents uint32 // Number of live nodes referencing this one
145145
children map[common.Hash]uint16 // External children referenced by this node
146146

147147
flushPrev common.Hash // Previous node in the flush-list

0 commit comments

Comments
 (0)