diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-10-19 19:35:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 19:35:49 +0800 |
commit | 25ac04a444d82f42138fc06e651c1ef9bac935dc (patch) | |
tree | 4b4925de834f243a05c73e661e77bc60287aeb9d /core | |
parent | 8e52c2e754cdb343d0eb880a33251e1ba593d327 (diff) | |
parent | 8d56bf5ceb74a7ed45c986450848a89e2df61189 (diff) | |
download | go-tangerine-25ac04a444d82f42138fc06e651c1ef9bac935dc.tar.gz go-tangerine-25ac04a444d82f42138fc06e651c1ef9bac935dc.tar.zst go-tangerine-25ac04a444d82f42138fc06e651c1ef9bac935dc.zip |
Merge pull request #3153 from fjl/trie-unload-fix
trie: improve cache unloading mechanism
Diffstat (limited to 'core')
-rw-r--r-- | core/state/statedb.go | 8 |
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 |