mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 15:48:46 +00:00
52d76977ca
* log msg * refactor * use of delete * fixed verkle tree incremental * ops * ops Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
31 lines
712 B
Go
31 lines
712 B
Go
package main
|
|
|
|
import "github.com/ledgerwatch/erigon-lib/kv"
|
|
|
|
const (
|
|
VerkleIncarnation = "VerkleIncarnation"
|
|
VerkleRoots = "VerkleRoots"
|
|
PedersenHashedCodeLookup = "PedersenHashedCodeLookup"
|
|
PedersenHashedAccountsLookup = "PedersenHashedAccountsLookup"
|
|
PedersenHashedStorageLookup = "PedersenHashedStorageLookup"
|
|
VerkleTrie = "VerkleTrie"
|
|
)
|
|
|
|
var ExtraBuckets = []string{
|
|
VerkleIncarnation,
|
|
PedersenHashedCodeLookup,
|
|
PedersenHashedAccountsLookup,
|
|
PedersenHashedStorageLookup,
|
|
VerkleTrie,
|
|
VerkleRoots,
|
|
}
|
|
|
|
func initDB(tx kv.RwTx) error {
|
|
for _, b := range ExtraBuckets {
|
|
if err := tx.CreateBucket(b); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|