From ccfa9c04848b02ea0be6af5f81effa535d5c8a33 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 23 Apr 2020 21:01:47 +0200 Subject: [PATCH] client/rpc: fix panic on status command --- client/rpc/status.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/rpc/status.go b/client/rpc/status.go index da530a0ce2f4..5987930b7779 100644 --- a/client/rpc/status.go +++ b/client/rpc/status.go @@ -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 {