erigon-pulse/cmd/verkle/buckets.go

25 lines
407 B
Go
Raw Normal View History

package main
import "github.com/ledgerwatch/erigon-lib/kv"
const (
VerkleIncarnation = "VerkleIncarnation"
VerkleRoots = "VerkleRoots"
VerkleTrie = "VerkleTrie"
)
var ExtraBuckets = []string{
VerkleIncarnation,
VerkleTrie,
VerkleRoots,
}
func initDB(tx kv.RwTx) error {
for _, b := range ExtraBuckets {
if err := tx.CreateBucket(b); err != nil {
return err
}
}
return nil
}