erigon-pulse/cmd/state/commands/bodies_snapshot.go
b00ris e5f6412da2
Update snapshot hash (#1243)
* remove useless bucket

* update snapshot hashes

* remove log
2020-10-17 08:48:20 +01:00

23 lines
607 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/generate"
"github.com/spf13/cobra"
)
func init() {
withChaindata(generateBodiesSnapshotCmd)
withSnapshotFile(generateBodiesSnapshotCmd)
withSnapshotData(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, snapshotDir, snapshotMode)
},
}