fix: remove enable hash check

This commit is contained in:
Fynn 2024-08-20 11:23:26 +08:00
parent a1d4b06707
commit b585984e32

@ -2,6 +2,7 @@ package versiondb
import (
versa "github.com/bnb-chain/versioned-state-database"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/log"
@ -13,7 +14,6 @@ type Config struct {
Path string
FlushInterval int64
MaxStatesInMem int
EnableHashChecker bool
}
type VersionDB struct {
@ -31,7 +31,6 @@ func New(config *Config) *VersionDB {
cfg = &versa.VersaDBConfig{
FlushInterval: config.FlushInterval,
MaxStatesInMem: config.MaxStatesInMem,
EnableHashChecker: config.EnableHashChecker,
}
}
db, err := versa.NewVersaDB(path, cfg)