Browse Source

swaps: disable rbf

bip39-recovery
ThomasV 5 years ago
parent
commit
7ec7dd07d0
  1. 2
      electrum/submarine_swaps.py

2
electrum/submarine_swaps.py

@ -66,7 +66,7 @@ def create_claim_tx(txin, witness_script, preimage, privkey:bytes, address, amou
txin.witness_script = witness_script
txout = PartialTxOutput(scriptpubkey=bytes.fromhex(address_to_script(address)), value=amount_sat)
tx = PartialTransaction.from_io([txin], [txout], version=2, locktime=(None if preimage else locktime))
tx.set_rbf(True)
#tx.set_rbf(True)
sig = bytes.fromhex(tx.sign_txin(0, privkey))
witness = [sig, preimage, witness_script]
txin.witness = bytes.fromhex(construct_witness(witness))

Loading…
Cancel
Save