mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
deactivate snapshot for tests
This commit is contained in:
parent
c2cdd50666
commit
4b54c4b57f
1 changed files with 11 additions and 10 deletions
|
|
@ -23,7 +23,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/fastcache"
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/rawdb"
|
"github.com/ethereum/go-ethereum/core/rawdb"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|
@ -216,15 +215,17 @@ func New(config Config, diskdb ethdb.KeyValueStore, triedb *trie.Database, root
|
||||||
log.Warn("Failed to load snapshot", "err", err)
|
log.Warn("Failed to load snapshot", "err", err)
|
||||||
if !config.NoBuild {
|
if !config.NoBuild {
|
||||||
if config.Verkle {
|
if config.Verkle {
|
||||||
snap.layers = map[common.Hash]snapshot{
|
// TODO update the Rebuild function
|
||||||
root: &diskLayer{
|
// snap.layers = map[common.Hash]snapshot{
|
||||||
diskdb: diskdb,
|
// root: &diskLayer{
|
||||||
triedb: triedb,
|
// diskdb: diskdb,
|
||||||
root: root,
|
// triedb: triedb,
|
||||||
cache: fastcache.New(config.CacheSize * 1024 * 1024),
|
// root: root,
|
||||||
},
|
// cache: fastcache.New(config.CacheSize * 1024 * 1024),
|
||||||
}
|
// },
|
||||||
return snap, nil
|
// }
|
||||||
|
// return snap, nil
|
||||||
|
return nil, nil
|
||||||
}
|
}
|
||||||
log.Warn("Failed to load snapshot, regenerating", "err", err)
|
log.Warn("Failed to load snapshot, regenerating", "err", err)
|
||||||
snap.Rebuild(root)
|
snap.Rebuild(root)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue