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
commit 1cd1d088df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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 {