mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-17 08:08:45 +00:00
bca221bf85
* 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>
29 lines
652 B
Go
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
|
|
}
|