erigon-pulse/cmd/verkle/buckets.go
Giulio rebuffo bca221bf85
Refactored verkle tree state writer (#5357)
* verkle stuff

* added verkle writer

* added more stuff to verkle trees

* added tool for incremental prom.

* lint

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-13 15:05:58 +02:00

29 lines
652 B
Go

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