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