mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
99fbbb545b
* verkle generation * better UX * q * better verkle stuff * for * for o * lint * direct vtree * addee verkle trees incremental promotion * lint Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
33 lines
816 B
Go
33 lines
816 B
Go
package main
|
|
|
|
import "github.com/ledgerwatch/erigon-lib/kv"
|
|
|
|
const (
|
|
PedersenHashedAccounts = "PedersenHashedAccounts"
|
|
PedersenHashedStorage = "PedersenHashedStorage"
|
|
PedersenHashedCode = "PedersenHashedCode"
|
|
PedersenHashedCodeLookup = "PedersenHashedCodeLookup"
|
|
PedersenHashedAccountsLookup = "PedersenHashedAccountsLookup"
|
|
PedersenHashedStorageLookup = "PedersenHashedStorageLookup"
|
|
VerkleTrie = "VerkleTrie"
|
|
)
|
|
|
|
var ExtraBuckets = []string{
|
|
PedersenHashedAccounts,
|
|
PedersenHashedStorage,
|
|
PedersenHashedCode,
|
|
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
|
|
}
|