fix: remove enable hash check
This commit is contained in:
parent
a1d4b06707
commit
b585984e32
@ -2,6 +2,7 @@ package versiondb
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
versa "github.com/bnb-chain/versioned-state-database"
|
versa "github.com/bnb-chain/versioned-state-database"
|
||||||
|
|
||||||
"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/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
@ -10,10 +11,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Path string
|
Path string
|
||||||
FlushInterval int64
|
FlushInterval int64
|
||||||
MaxStatesInMem int
|
MaxStatesInMem int
|
||||||
EnableHashChecker bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VersionDB struct {
|
type VersionDB struct {
|
||||||
@ -29,9 +29,8 @@ func New(config *Config) *VersionDB {
|
|||||||
if config != nil {
|
if config != nil {
|
||||||
path = config.Path
|
path = config.Path
|
||||||
cfg = &versa.VersaDBConfig{
|
cfg = &versa.VersaDBConfig{
|
||||||
FlushInterval: config.FlushInterval,
|
FlushInterval: config.FlushInterval,
|
||||||
MaxStatesInMem: config.MaxStatesInMem,
|
MaxStatesInMem: config.MaxStatesInMem,
|
||||||
EnableHashChecker: config.EnableHashChecker,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
db, err := versa.NewVersaDB(path, cfg)
|
db, err := versa.NewVersaDB(path, cfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user