From 27a6fa45ec41dba115191bec0e9a176a6bfa7a93 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 14 Oct 2016 15:13:19 +0200 Subject: [PATCH] core/state: rename journal size constant --- core/state/statedb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 07e1bd94a3..dcb8976281 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -41,7 +41,7 @@ var StartingNonce uint64 const ( // Number of past tries to keep. The arbitrarily chosen value here // is max uncle depth + 1. - maxTrieCacheLength = 8 + maxPastTries = 8 // Trie cache generation limit. maxTrieCacheGen = 100 @@ -165,7 +165,7 @@ func (self *StateDB) pushTrie(t *trie.SecureTrie) { self.lock.Lock() defer self.lock.Unlock() - if len(self.pastTries) >= maxTrieCacheLength { + if len(self.pastTries) >= maxPastTries { copy(self.pastTries, self.pastTries[1:]) self.pastTries[len(self.pastTries)-1] = t } else {