mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
e5f6412da2
* remove useless bucket * update snapshot hashes * remove log
23 lines
607 B
Go
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)
|
|
},
|
|
}
|