mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
bf768a4278
* fixed increment * removed useless code * Adapted verkle tree generation in preperation of Beverly Hills Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
25 lines
407 B
Go
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
|
|
}
|