From c31fa059fe01a38ae5f382715283fbec5f6dca9a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 22 Nov 2019 16:09:42 +0100 Subject: [PATCH] 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) --- electrum/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/commands.py b/electrum/commands.py index 2a614fb98..695eb3936 100644 --- 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, }