From f3d9162c026743e5ea2e67255b8071156068e85f Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Mon, 8 Oct 2018 10:20:14 +0800 Subject: [PATCH] core: fix default trie cache limit --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index f4a818f4c0..5380934c38 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -140,7 +140,7 @@ type BlockChain struct { func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, chainConfig *params.ChainConfig, engine consensus.Engine, vmConfig vm.Config, shouldPreserve func(block *types.Block) bool) (*BlockChain, error) { if cacheConfig == nil { cacheConfig = &CacheConfig{ - TrieNodeLimit: 256 * 1024 * 1024, + TrieNodeLimit: 256, TrieTimeLimit: 5 * time.Minute, } }