Merge pull request #6065 from cosmos/alessio/fix-panic-on-status-command

client/rpc: fix panic on status command
This commit is contained in:
Alessio Treglia
2020-04-23 20:42:15 +01:00
committed by GitHub
+3
View File
@@ -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 {