aboutsummaryrefslogtreecommitdiffstats
path: root/trie/database.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-11-22 21:14:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-22 21:14:31 +0800
commit2843001ac218040f7e773159596625654f4e4148 (patch)
tree8967aadaaf889d3a269e9faee6e935e5b988f82e /trie/database.go
parent9d5e3e06370dace249305d91624cb83cabf3c25f (diff)
downloadgo-tangerine-2843001ac218040f7e773159596625654f4e4148.tar
go-tangerine-2843001ac218040f7e773159596625654f4e4148.tar.gz
go-tangerine-2843001ac218040f7e773159596625654f4e4148.tar.bz2
go-tangerine-2843001ac218040f7e773159596625654f4e4148.tar.lz
go-tangerine-2843001ac218040f7e773159596625654f4e4148.tar.xz
go-tangerine-2843001ac218040f7e773159596625654f4e4148.tar.zst
go-tangerine-2843001ac218040f7e773159596625654f4e4148.zip
trie: fix overflow in write cache parent tracking (#18165)
trie/database: fix overflow in parent tracking
Diffstat (limited to 'trie/database.go')
-rw-r--r--trie/database.go2
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