From 10d94a5ef4ddc15d5147e685f29cb51e232e01a6 Mon Sep 17 00:00:00 2001 From: Viacheslav Gonkivskyi Date: Thu, 14 Sep 2023 16:07:25 +0300 Subject: [PATCH] remove isStoppedCmd --- cmd/celestia/state.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/cmd/celestia/state.go b/cmd/celestia/state.go index 2214d24985..2f3d1e138a 100644 --- a/cmd/celestia/state.go +++ b/cmd/celestia/state.go @@ -14,7 +14,6 @@ import ( func init() { stateCmd.AddCommand( - isStoppedCmd, accountAddressCmd, balanceCmd, balanceForAddressCmd, @@ -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.",