diff options
author | gary rong <garyrong0905@gmail.com> | 2018-11-13 00:06:34 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-13 00:06:34 +0800 |
commit | 1212c7b844e3ef13cbb5476b088eae27782535b4 (patch) | |
tree | 12e984b39af5b116cc233b9bd6669780ce51437a /core | |
parent | 201a0bf18181da8d783f6e7adf3ceaccd159eb73 (diff) | |
download | go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar.gz go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar.bz2 go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar.lz go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar.xz go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.tar.zst go-tangerine-1212c7b844e3ef13cbb5476b088eae27782535b4.zip |
core: fix default trie cache limit (#17860)
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index 1b0c26ae2..26ac75b8c 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, } } |