From 8dcbb8d4c1624f8e7c06b13153a07e28164b56ea Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 22 Nov 2018 14:06:53 +0100 Subject: [PATCH] trie/database: fix overflow in parent tracking --- trie/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/database.go b/trie/database.go index 71190b3f3f..739a98addb 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