Remove print response flag (#4593)
This flag isn't used anywhere and probably hasn't for quite some time.
This commit is contained in:
parent
c3bef9a211
commit
6d5ca0b4f1
|
@ -0,0 +1 @@
|
||||||
|
Remove `--print-response` flag as it is no longer used.
|
|
@ -43,7 +43,6 @@ const (
|
||||||
FlagFees = flags.FlagFees
|
FlagFees = flags.FlagFees
|
||||||
FlagGasPrices = flags.FlagGasPrices
|
FlagGasPrices = flags.FlagGasPrices
|
||||||
FlagBroadcastMode = flags.FlagBroadcastMode
|
FlagBroadcastMode = flags.FlagBroadcastMode
|
||||||
FlagPrintResponse = flags.FlagPrintResponse
|
|
||||||
FlagDryRun = flags.FlagDryRun
|
FlagDryRun = flags.FlagDryRun
|
||||||
FlagGenerateOnly = flags.FlagGenerateOnly
|
FlagGenerateOnly = flags.FlagGenerateOnly
|
||||||
FlagIndentResponse = flags.FlagIndentResponse
|
FlagIndentResponse = flags.FlagIndentResponse
|
||||||
|
|
|
@ -43,7 +43,6 @@ type CLIContext struct {
|
||||||
TrustNode bool
|
TrustNode bool
|
||||||
UseLedger bool
|
UseLedger bool
|
||||||
BroadcastMode string
|
BroadcastMode string
|
||||||
PrintResponse bool
|
|
||||||
Verifier tmlite.Verifier
|
Verifier tmlite.Verifier
|
||||||
VerifierHome string
|
VerifierHome string
|
||||||
Simulate bool
|
Simulate bool
|
||||||
|
@ -91,7 +90,6 @@ func NewCLIContextWithFrom(from string) CLIContext {
|
||||||
TrustNode: viper.GetBool(flags.FlagTrustNode),
|
TrustNode: viper.GetBool(flags.FlagTrustNode),
|
||||||
UseLedger: viper.GetBool(flags.FlagUseLedger),
|
UseLedger: viper.GetBool(flags.FlagUseLedger),
|
||||||
BroadcastMode: viper.GetString(flags.FlagBroadcastMode),
|
BroadcastMode: viper.GetString(flags.FlagBroadcastMode),
|
||||||
PrintResponse: viper.GetBool(flags.FlagPrintResponse),
|
|
||||||
Verifier: verifier,
|
Verifier: verifier,
|
||||||
Simulate: viper.GetBool(flags.FlagDryRun),
|
Simulate: viper.GetBool(flags.FlagDryRun),
|
||||||
GenerateOnly: genOnly,
|
GenerateOnly: genOnly,
|
||||||
|
|
|
@ -45,7 +45,6 @@ const (
|
||||||
FlagFees = "fees"
|
FlagFees = "fees"
|
||||||
FlagGasPrices = "gas-prices"
|
FlagGasPrices = "gas-prices"
|
||||||
FlagBroadcastMode = "broadcast-mode"
|
FlagBroadcastMode = "broadcast-mode"
|
||||||
FlagPrintResponse = "print-response"
|
|
||||||
FlagDryRun = "dry-run"
|
FlagDryRun = "dry-run"
|
||||||
FlagGenerateOnly = "generate-only"
|
FlagGenerateOnly = "generate-only"
|
||||||
FlagIndentResponse = "indent"
|
FlagIndentResponse = "indent"
|
||||||
|
@ -96,7 +95,6 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command {
|
||||||
c.Flags().Bool(FlagUseLedger, false, "Use a connected Ledger device")
|
c.Flags().Bool(FlagUseLedger, false, "Use a connected Ledger device")
|
||||||
c.Flags().Float64(FlagGasAdjustment, 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 ")
|
c.Flags().Float64(FlagGasAdjustment, 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 ")
|
||||||
c.Flags().StringP(FlagBroadcastMode, "b", BroadcastSync, "Transaction broadcasting mode (sync|async|block)")
|
c.Flags().StringP(FlagBroadcastMode, "b", BroadcastSync, "Transaction broadcasting mode (sync|async|block)")
|
||||||
c.Flags().Bool(FlagPrintResponse, true, "return tx response (only works with async = false)")
|
|
||||||
c.Flags().Bool(FlagTrustNode, true, "Trust connected full node (don't verify proofs for responses)")
|
c.Flags().Bool(FlagTrustNode, true, "Trust connected full node (don't verify proofs for responses)")
|
||||||
c.Flags().Bool(FlagDryRun, false, "ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it")
|
c.Flags().Bool(FlagDryRun, false, "ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it")
|
||||||
c.Flags().Bool(FlagGenerateOnly, false, "Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is not accessible and the node operates offline)")
|
c.Flags().Bool(FlagGenerateOnly, false, "Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is not accessible and the node operates offline)")
|
||||||
|
|
Loading…
Reference in New Issue