commit 906a2c15dc4450c9fd083999bc0712a6aa866da0
parent b6b8aadd55816b01eed439599bad669f7ca9c011
Author: SomberNight <somber.night@protonmail.com>
Date: Sat, 13 Jun 2020 18:44:20 +0200
sweeping via CLI: allow customising RBF
fixes #6231
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -184,7 +184,9 @@ def sweep(privkeys, *, network: 'Network', config: 'SimpleConfig',
locktime = get_locktime_for_new_transaction(network)
tx = PartialTransaction.from_io(inputs, outputs, locktime=locktime, version=tx_version)
- tx.set_rbf(True)
+ rbf = config.get('use_rbf', True)
+ if rbf:
+ tx.set_rbf(True)
tx.sign(keypairs)
return tx