diff options
author | Martin Holst Swende <martin@swende.se> | 2018-11-22 21:14:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-22 21:14:31 +0800 |
commit | 2843001ac218040f7e773159596625654f4e4148 (patch) | |
tree | 8967aadaaf889d3a269e9faee6e935e5b988f82e | |
parent | 9d5e3e06370dace249305d91624cb83cabf3c25f (diff) | |
download | dexon-2843001ac218040f7e773159596625654f4e4148.tar.gz dexon-2843001ac218040f7e773159596625654f4e4148.tar.zst dexon-2843001ac218040f7e773159596625654f4e4148.zip |
trie: fix overflow in write cache parent tracking (#18165)
trie/database: fix overflow in parent tracking
-rw-r--r-- | trie/database.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/database.go b/trie/database.go index 71190b3f3..739a98add 100644 --- a/trie/database.go +++ b/trie/database.go @@ -141,7 +141,7 @@ type cachedNode struct { node node // Cached collapsed trie node, or raw rlp data size uint16 // Byte size of the useful cached data - parents uint16 // Number of live nodes referencing this one + parents uint32 // Number of live nodes referencing this one children map[common.Hash]uint16 // External children referenced by this node flushPrev common.Hash // Previous node in the flush-list |