erigon-pulse/cmd/state/commands/bodies_snapshot.go

22 lines
535 B
Go
Raw Normal View History

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/generate"
"github.com/spf13/cobra"
)
func init() {
withChaindata(generateBodiesSnapshotCmd)
withSnapshotFile(generateBodiesSnapshotCmd)
withBlock(generateBodiesSnapshotCmd)
rootCmd.AddCommand(generateBodiesSnapshotCmd)
}
var generateBodiesSnapshotCmd = &cobra.Command{
Use: "bodiesSnapshot",
Short: "Generate bodies snapshot",
RunE: func(cmd *cobra.Command, args []string) error {
return generate.BodySnapshot(chaindata, snapshotFile, block)
},
}