Files
prysm/cmd/prysmctl/db/buckets.go
Bastin 92bd211e4d upgrade v6 to v7 (#15989)
* upgrade v6 to v7

* changelog

* update-go-ssz
2025-11-06 16:16:23 +00:00

33 lines
562 B
Go

package db
import (
"fmt"
"github.com/OffchainLabs/prysm/v7/beacon-chain/db/kv"
"github.com/urfave/cli/v2"
)
var bucketsFlags = struct {
Path string
}{}
var bucketsCmd = &cli.Command{
Name: "buckets",
Usage: "list db buckets",
Action: bucketsAction,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "path",
Usage: "path to directory containing beaconchain.db",
Destination: &bucketsFlags.Path,
},
},
}
func bucketsAction(_ *cli.Context) error {
for _, b := range kv.Buckets {
fmt.Printf("%s\n", string(b))
}
return nil
}