aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-18 05:00:48 +0800
committerFelix Lange <fjl@twurst.com>2016-10-18 10:57:47 +0800
commit44f419ec0f491a632658213ac8bbd0c132e0ffcf (patch)
tree215d0e81956a2490058be1054d2ae0e943bc79b4 /core
parent177cab5fe70910ee0af3fcf493d51999ae2d923d (diff)
downloaddexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar.gz
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar.bz2
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar.lz
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar.xz
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.tar.zst
dexon-44f419ec0f491a632658213ac8bbd0c132e0ffcf.zip
core/state: bump trie cache values slightly
Diffstat (limited to 'core')
-rw-r--r--core/state/statedb.go8
1 files changed, 4 insertions, 4 deletions
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