sweeping via CLI: allow customising RBF

fixes #6231
This commit is contained in:
SomberNight 2020-06-13 18:44:20 +02:00
parent b6b8aadd55
commit 906a2c15dc
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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