From e72c19a3515e8cbd6035cfe579f0d57427bda126 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 4 Oct 2018 12:39:59 +0200 Subject: [PATCH] Revert viper.Set change --- client/rpc/status.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/rpc/status.go b/client/rpc/status.go index b6675e8211..7f34942160 100644 --- a/client/rpc/status.go +++ b/client/rpc/status.go @@ -41,7 +41,8 @@ func getNodeStatus(cliCtx context.CLIContext) (*ctypes.ResultStatus, error) { func printNodeStatus(cmd *cobra.Command, args []string) error { // No need to verify proof in getting node status - cliCtx := context.NewCLIContext().WithTrustNode(true) + viper.Set(client.FlagTrustNode, true) + cliCtx := context.NewCLIContext() status, err := getNodeStatus(cliCtx) if err != nil { return err