Explorar el Código

core: fix default trie cache limit (#17860)

gary rong hace 7 años
padre
commit
1212c7b844
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/blockchain.go

+ 1 - 1
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,
 		}
 	}