Skip to content

Commit 1212c7b

Browse files
rjl493456442karalabe
authored andcommitted
core: fix default trie cache limit (#17860)
1 parent 201a0bf commit 1212c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ type BlockChain struct {
140140
func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, chainConfig *params.ChainConfig, engine consensus.Engine, vmConfig vm.Config, shouldPreserve func(block *types.Block) bool) (*BlockChain, error) {
141141
if cacheConfig == nil {
142142
cacheConfig = &CacheConfig{
143-
TrieNodeLimit: 256 * 1024 * 1024,
143+
TrieNodeLimit: 256,
144144
TrieTimeLimit: 5 * time.Minute,
145145
}
146146
}

0 commit comments

Comments
 (0)