mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 20:17:17 +00:00
20 lines
387 B
Go
20 lines
387 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/ledgerwatch/turbo-geth/cmd/state/stateless"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
withBlock(stateSnapshotCmd)
|
|
rootCmd.AddCommand(stateSnapshotCmd)
|
|
}
|
|
|
|
var stateSnapshotCmd = &cobra.Command{
|
|
Use: "stateSnapshot",
|
|
Short: "stateSnapshot",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return stateless.StateSnapshot(block)
|
|
},
|
|
}
|