Browse Source

lnbase: fix sig encoding in mutual close

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
Janus 6 years ago
committed by ThomasV
parent
commit
60508725b6
  1. 4
      electrum/lnbase.py

4
electrum/lnbase.py

@ -1197,8 +1197,8 @@ class Peer(PrintError):
our_fee = their_fee
# add their signature
i = chan.get_local_index()
closing_tx.add_signature_to_txin(0, i, bh2u(our_sig))
closing_tx.add_signature_to_txin(0, 1-i, bh2u(their_sig))
closing_tx.add_signature_to_txin(0, i, bh2u(der_sig_from_sig_string(our_sig) + b'\x01'))
closing_tx.add_signature_to_txin(0, 1-i, bh2u(der_sig_from_sig_string(their_sig) + b'\x01'))
# broadcast
await self.network.broadcast_transaction(closing_tx)
return closing_tx.txid()

Loading…
Cancel
Save