return back wrongly deleted lines

feature/state_pruning_codes
“GheisMohammadi” 10 months ago
parent 9f44ef5d9a
commit 6e65269336
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 1
      core/blockchain_impl.go
  2. 1
      core/state/snapshot/snapshot.go
  3. 1
      node/worker/worker_test.go

@ -262,6 +262,7 @@ func newBlockChainWithOptions(
if stateCache == nil {
stateCache = state.NewDatabaseWithNodeDB(db, triedb)
}
bodyCache, _ := lru.New(bodyCacheLimit)
bodyRLPCache, _ := lru.New(bodyCacheLimit)
receiptsCache, _ := lru.New(receiptsCacheLimit)

@ -206,6 +206,7 @@ func New(config Config, diskdb ethdb.KeyValueStore, triedb *trie.Database, root
utils.Logger().Warn().Err(err).Msg("Snapshot maintenance disabled (syncing)")
return snap, nil
}
// Create the building waiter if the background generation is allowed
if !config.NoBuild && !config.AsyncBuild {
defer snap.waitBuild()

@ -46,6 +46,7 @@ func TestNewWorker(t *testing.T) {
_ = genesis
cacheConfig := &core.CacheConfig{SnapshotLimit: 0}
chain, err := core.NewBlockChain(database, nil, &core.BlockChainImpl{}, cacheConfig, gspec.Config, engine, vm.Config{})
if err != nil {
t.Error(err)
}

Loading…
Cancel
Save