Merge pull request #6065 from cosmos/alessio/fix-panic-on-status-command
client/rpc: fix panic on status command
This commit is contained in:
commit
1cd1d088df
|
@ -44,6 +44,9 @@ func getNodeStatus(cliCtx context.CLIContext) (*ctypes.ResultStatus, error) {
|
||||||
func printNodeStatus(_ *cobra.Command, _ []string) error {
|
func printNodeStatus(_ *cobra.Command, _ []string) error {
|
||||||
// No need to verify proof in getting node status
|
// No need to verify proof in getting node status
|
||||||
viper.Set(flags.FlagTrustNode, true)
|
viper.Set(flags.FlagTrustNode, true)
|
||||||
|
// No need to verify proof in getting node status
|
||||||
|
viper.Set(flags.FlagKeyringBackend, flags.DefaultKeyringBackend)
|
||||||
|
|
||||||
cliCtx := context.NewCLIContext()
|
cliCtx := context.NewCLIContext()
|
||||||
status, err := getNodeStatus(cliCtx)
|
status, err := getNodeStatus(cliCtx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue