Revert viper.Set change
This commit is contained in:
parent
bf3e2763dd
commit
e72c19a351
|
@ -41,7 +41,8 @@ func getNodeStatus(cliCtx context.CLIContext) (*ctypes.ResultStatus, error) {
|
||||||
|
|
||||||
func printNodeStatus(cmd *cobra.Command, args []string) error {
|
func printNodeStatus(cmd *cobra.Command, args []string) error {
|
||||||
// No need to verify proof in getting node status
|
// 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)
|
status, err := getNodeStatus(cliCtx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue