commit 6aa337c618221acb1af700b8a6972914f8fa5949
parent c035bfcc46920a05770b802789b79e18cc8012c8
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 27 May 2020 18:13:30 +0200
fix #6176
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
@@ -810,7 +810,13 @@ class Peer(Logger):
self.logger.info(f'channel_reestablish ({chan.get_id_for_log()}): sent channel_reestablish with '
f'(next_local_ctn={next_local_ctn}, '
f'oldest_unrevoked_remote_ctn={oldest_unrevoked_remote_ctn})')
- msg = await self.wait_for_message('channel_reestablish', chan_id)
+ while True:
+ try:
+ msg = await self.wait_for_message('channel_reestablish', chan_id)
+ break
+ except asyncio.TimeoutError:
+ self.logger.info('waiting to receive channel_reestablish...')
+ continue
their_next_local_ctn = msg["next_commitment_number"]
their_oldest_unrevoked_remote_ctn = msg["next_revocation_number"]
their_local_pcp = msg.get("my_current_per_commitment_point")