electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c31fa059fe01a38ae5f382715283fbec5f6dca9a
parent 420b1a66362bf9b3965afbb58953eaf41c3c06f3
Author: SomberNight <somber.night@protonmail.com>
Date:   Fri, 22 Nov 2019 16:09:42 +0100

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)

Diffstat:
Melectrum/commands.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/commands.py b/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, }