mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
core/state: rename journal size constant
This commit is contained in:
parent
64097b8455
commit
27a6fa45ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue