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"
|
||||||
@ -13,7 +14,6 @@ type Config struct {
|
|||||||
Path string
|
Path string
|
||||||
FlushInterval int64
|
FlushInterval int64
|
||||||
MaxStatesInMem int
|
MaxStatesInMem int
|
||||||
EnableHashChecker bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VersionDB struct {
|
type VersionDB struct {
|
||||||
@ -31,7 +31,6 @@ func New(config *Config) *VersionDB {
|
|||||||
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