From acc418bbb039ad3066ae5190b53a5e3c40f8b7a1 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 4 Oct 2016 14:16:41 +0100 Subject: [PATCH] core/state: Rename maxJournalLength to maxTrieCacheLength --- 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 00ca9fc83c..458d284836 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -40,7 +40,7 @@ var StartingNonce uint64 const ( // Number of past tries to keep. The arbitrarily chosen value here // is max uncle depth + 1. - maxJournalLength = 8 + maxTrieCacheLength = 8 // Number of codehash->size associations to keep. codeSizeCacheSize = 100000 @@ -154,7 +154,7 @@ func (self *StateDB) pushTrie(t *trie.SecureTrie) { self.lock.Lock() defer self.lock.Unlock() - if len(self.pastTries) >= maxJournalLength { + if len(self.pastTries) >= maxTrieCacheLength { copy(self.pastTries, self.pastTries[1:]) self.pastTries[len(self.pastTries)-1] = t } else {