Skip to content

Commit

Permalink
remove isStoppedCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Sep 15, 2023
1 parent 57282a8 commit 10d94a5
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions cmd/celestia/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

func init() {
stateCmd.AddCommand(
isStoppedCmd,
accountAddressCmd,
balanceCmd,
balanceForAddressCmd,
Expand All @@ -37,30 +36,6 @@ var stateCmd = &cobra.Command{
Args: cobra.NoArgs,
}

var isStoppedCmd = &cobra.Command{
Use: "is-stopped",
Short: "Checks if the Module's context has been stopped.",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
client, err := rpcClient(cmd.Context())
if err != nil {
return err
}

stopped := client.State.IsStopped(cmd.Context())

formatter := func(data interface{}) interface{} {
s := data.(bool)
return struct {
Stopped bool `json:"stopped"`
}{
Stopped: s,
}
}
return printOutput(stopped, nil, formatter)
},
}

var accountAddressCmd = &cobra.Command{
Use: "account-address",
Short: "Retrieves the address of the node's account/signer.",
Expand Down

0 comments on commit 10d94a5

Please sign in to comment.