Skip to content

Commit

Permalink
Merge pull request cosmos#6065 from cosmos/alessio/fix-panic-on-statu…
Browse files Browse the repository at this point in the history
…s-command

client/rpc: fix panic on status command
  • Loading branch information
Alessio Treglia committed Apr 23, 2020
2 parents f1fdde5 + ccfa9c0 commit 1cd1d08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/rpc/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func getNodeStatus(cliCtx context.CLIContext) (*ctypes.ResultStatus, error) {
func printNodeStatus(_ *cobra.Command, _ []string) error {
// No need to verify proof in getting node status
viper.Set(flags.FlagTrustNode, true)
// No need to verify proof in getting node status
viper.Set(flags.FlagKeyringBackend, flags.DefaultKeyringBackend)

cliCtx := context.NewCLIContext()
status, err := getNodeStatus(cliCtx)
if err != nil {
Expand Down

0 comments on commit 1cd1d08

Please sign in to comment.