Browse Source

sweeping via CLI: allow customising RBF

fixes #6231
bip39-recovery
SomberNight 5 years ago
parent
commit
906a2c15dc
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/wallet.py

4
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

Loading…
Cancel
Save