1
0

do not include 'force_closing' in channel states, because it is not part of the peer protocol

This commit is contained in:
ThomasV
2019-05-19 11:55:55 +02:00
parent 0acd0c23d3
commit 3c0df28c98
4 changed files with 18 additions and 20 deletions

View File

@@ -1342,7 +1342,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)
cs_payload = await asyncio.wait_for(self.closing_signed[chan.channel_id].get(), 1)
cs_payload = await asyncio.wait_for(self.closing_signed[chan.channel_id].get(), 10)
their_fee = int.from_bytes(cs_payload['fee_satoshis'], 'big')
their_sig = cs_payload['signature']
if our_fee == their_fee: