Browse Source

lnbase: fix sig encoding in mutual close

regtest_lnd
Janus 6 years ago
committed by SomberNight
parent
commit
7b1ff8d83f
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  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