Browse Source

lnutil: remove LI01 sort after Tx.from_io: fixup after rebase on da9d1e6001

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
Janus 6 years ago
committed by ThomasV
parent
commit
e18a3b5a3d
  1. 3
      electrum/lnutil.py

3
electrum/lnutil.py

@ -198,7 +198,6 @@ def make_htlc_tx(cltv_timeout, inputs, output):
assert type(cltv_timeout) is int assert type(cltv_timeout) is int
c_outputs = [output] c_outputs = [output]
tx = Transaction.from_io(inputs, c_outputs, locktime=cltv_timeout, version=2) tx = Transaction.from_io(inputs, c_outputs, locktime=cltv_timeout, version=2)
tx.BIP_LI01_sort()
return tx return tx
def make_offered_htlc(revocation_pubkey, remote_htlcpubkey, local_htlcpubkey, payment_hash): def make_offered_htlc(revocation_pubkey, remote_htlcpubkey, local_htlcpubkey, payment_hash):
@ -339,7 +338,6 @@ def make_commitment(ctn, local_funding_pubkey, remote_funding_pubkey,
# create commitment tx # create commitment tx
tx = Transaction.from_io(c_inputs, c_outputs_filtered, locktime=locktime, version=2) tx = Transaction.from_io(c_inputs, c_outputs_filtered, locktime=locktime, version=2)
tx.BIP_LI01_sort()
tx.htlc_output_indices = {} tx.htlc_output_indices = {}
for idx, output in enumerate(c_outputs): for idx, output in enumerate(c_outputs):
@ -472,5 +470,4 @@ def make_closing_tx(local_funding_pubkey: bytes, remote_funding_pubkey: bytes,
funding_txid, funding_sat) funding_txid, funding_sat)
c_input['sequence'] = 0xFFFF_FFFF c_input['sequence'] = 0xFFFF_FFFF
tx = Transaction.from_io([c_input], outputs, locktime=0, version=2) tx = Transaction.from_io([c_input], outputs, locktime=0, version=2)
tx.BIP_LI01_sort()
return tx return tx

Loading…
Cancel
Save