erigon-pulse/cmd/state/commands/headers_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
610 B
Go

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