From 5d6c4517f60bc05e9bede14ebf36160e8788c35a Mon Sep 17 00:00:00 2001 From: davcrypto <88310031+davcrypto@users.noreply.github.com> Date: Mon, 13 Sep 2021 18:36:21 +0800 Subject: [PATCH] client, server: default keyring-backend os (#552) --- client/keys.go | 2 +- server/flags/flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/keys.go b/client/keys.go index 889a7fd5..0569637b 100644 --- a/client/keys.go +++ b/client/keys.go @@ -76,7 +76,7 @@ The pass backend requires GnuPG: https://gnupg.org/ cmd.PersistentFlags().String(flags.FlagHome, defaultNodeHome, "The application home directory") cmd.PersistentFlags().String(flags.FlagKeyringDir, "", "The client Keyring directory; if omitted, the default 'home' directory will be used") - cmd.PersistentFlags().String(flags.FlagKeyringBackend, keyring.BackendFile, "Select keyring's backend (os|file|test)") + cmd.PersistentFlags().String(flags.FlagKeyringBackend, keyring.BackendOS, "Select keyring's backend (os|file|test)") cmd.PersistentFlags().String(cli.OutputFlag, "text", "Output format (text|json)") return cmd } diff --git a/server/flags/flags.go b/server/flags/flags.go index 944f1f96..89205f60 100644 --- a/server/flags/flags.go +++ b/server/flags/flags.go @@ -47,7 +47,7 @@ func AddTxFlags(cmd *cobra.Command) *cobra.Command { cmd.PersistentFlags().String(flags.FlagNode, "tcp://localhost:26657", ": to tendermint rpc interface for this chain") cmd.PersistentFlags().Float64(flags.FlagGasAdjustment, flags.DefaultGasAdjustment, "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored ") cmd.PersistentFlags().StringP(flags.FlagBroadcastMode, "b", flags.BroadcastSync, "Transaction broadcasting mode (sync|async|block)") - cmd.PersistentFlags().String(flags.FlagKeyringBackend, keyring.BackendFile, "Select keyring's backend") + cmd.PersistentFlags().String(flags.FlagKeyringBackend, keyring.BackendOS, "Select keyring's backend") // --gas can accept integers and "simulate" // cmd.PersistentFlags().Var(&flags.GasFlagVar, "gas", fmt.Sprintf(