mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
achieving perfection
This commit is contained in:
parent
1b72c34485
commit
5032dd480b
2 changed files with 4 additions and 18 deletions
|
|
@ -19,7 +19,6 @@ package state
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/common/lru"
|
||||
|
|
|
|||
|
|
@ -175,24 +175,11 @@ func New(root common.Hash, db Database, snaps *snapshot.Tree) (*StateDB, error)
|
|||
}
|
||||
if tr.IsVerkle() {
|
||||
sdb.witness = sdb.NewAccessWitness()
|
||||
// if sdb.snaps == nil {
|
||||
// snapconfig := snapshot.Config{
|
||||
// CacheSize: 256,
|
||||
// Recovery: false,
|
||||
// NoBuild: false,
|
||||
// AsyncBuild: false,
|
||||
// Verkle: true,
|
||||
// }
|
||||
// sdb.snaps, err = snapshot.New(snapconfig, db.DiskDB(), db.TrieDB(), root)
|
||||
// if err != nil {
|
||||
// return nil, err
|
||||
}
|
||||
// if sdb.snaps != nil {
|
||||
// if sdb.snap = sdb.snaps.Snapshot(root); sdb.snap == nil {
|
||||
// }
|
||||
// }
|
||||
}
|
||||
if sdb.snaps != nil {
|
||||
if sdb.snap = sdb.snaps.Snapshot(root); sdb.snap == nil {
|
||||
}
|
||||
}
|
||||
return sdb, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue