achieving perfection

This commit is contained in:
Guillaume Ballet 2023-09-25 17:27:30 +02:00
parent 1b72c34485
commit 5032dd480b
2 changed files with 4 additions and 18 deletions

View file

@ -19,7 +19,6 @@ package state
import (
"errors"
"fmt"
"sync"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/lru"

View file

@ -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
}