From a1b8c8e54e4fc0b794ea5c07116d837d89e70df5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 21 Feb 2020 18:30:59 +0100 Subject: [PATCH] add comment about minor issue with closing_signed --- electrum/lnpeer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index a1b9928ab..730379c26 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1393,6 +1393,7 @@ class Peer(Logger): while True: our_sig, closing_tx = chan.make_closing_tx(scriptpubkey, payload['scriptpubkey'], fee_sat=our_fee) self.send_message('closing_signed', channel_id=chan.channel_id, fee_satoshis=our_fee, signature=our_sig) + # FIXME: the remote SHOULD send closing_signed, but some don't. cs_payload = await asyncio.wait_for(self.closing_signed[chan.channel_id].get(), LN_P2P_NETWORK_TIMEOUT) their_fee = int.from_bytes(cs_payload['fee_satoshis'], 'big') their_sig = cs_payload['signature']