Revert viper.Set change

This commit is contained in:
Christopher Goes 2018-10-04 12:39:59 +02:00
parent bf3e2763dd
commit e72c19a351
1 changed files with 2 additions and 1 deletions

View File

@ -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