client/rpc: fix panic on status command

This commit is contained in:
Alessio Treglia 2020-04-23 21:01:47 +02:00
parent f1fdde5d1b
commit ccfa9c0484
No known key found for this signature in database
GPG Key ID: E8A48AE5311D765A
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 {