From 44f419ec0f491a632658213ac8bbd0c132e0ffcf Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 17 Oct 2016 23:00:48 +0200 Subject: core/state: bump trie cache values slightly --- core/state/statedb.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/state/statedb.go b/core/state/statedb.go index dcb897628..0e46e5e2c 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -39,12 +39,12 @@ import ( var StartingNonce uint64 const ( - // Number of past tries to keep. The arbitrarily chosen value here - // is max uncle depth + 1. - maxPastTries = 8 + // Number of past tries to keep. This value is chosen such that + // reasonable chain reorg depths will hit an existing trie. + maxPastTries = 12 // Trie cache generation limit. - maxTrieCacheGen = 100 + maxTrieCacheGen = 120 // Number of codehash->size associations to keep. codeSizeCacheSize = 100000 -- cgit v1.2.3