Browse Source
cli: clear up "rbf" arg for "payto" cmd in help text; and use eval_bool
related: #5791
(previously rbf was a str, and it was casted to a bool directly, i.e. only
the empty string "" evaluated as False)
hard-fail-on-bad-server-string
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/commands.py
|
|
@ -1034,7 +1034,7 @@ command_options = { |
|
|
|
'passphrase': (None, "Seed extension"), |
|
|
|
'privkey': (None, "Private key. Set to '?' to get a prompt."), |
|
|
|
'unsigned': ("-u", "Do not sign transaction"), |
|
|
|
'rbf': (None, "Replace-by-fee transaction"), |
|
|
|
'rbf': (None, "Whether to signal opt-in Replace-By-Fee in the transaction (true/false)"), |
|
|
|
'locktime': (None, "Set locktime block number"), |
|
|
|
'domain': ("-D", "List of addresses"), |
|
|
|
'memo': ("-m", "Description of the request"), |
|
|
@ -1078,6 +1078,7 @@ arg_types = { |
|
|
|
'fee_method': str, |
|
|
|
'fee_level': json_loads, |
|
|
|
'encrypt_file': eval_bool, |
|
|
|
'rbf': eval_bool, |
|
|
|
'timeout': float, |
|
|
|
} |
|
|
|
|
|
|
|