erigon-pulse/cmd/verkle/buckets.go
Giulio rebuffo bf768a4278
Adapted verkle tree generation in preperation of Beverly Hills (#5459)
* fixed increment

* removed useless code

* Adapted verkle tree generation in preperation of Beverly Hills

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-22 00:33:48 +02:00

25 lines
407 B
Go

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
}