1
0

lnpeer: do not drop channel updates if cannot send

This commit is contained in:
ThomasV
2020-02-29 16:38:33 +01:00
parent da67fda92a
commit d827aedd16
2 changed files with 3 additions and 9 deletions

View File

@@ -1332,7 +1332,7 @@ class LNWallet(LNWorker):
while True:
await asyncio.sleep(0.1)
for chan_id, chan in self.channels.items():
if chan.peer_state != peer_states.GOOD:
if not chan.can_send_ctx_updates():
continue
peer = self.peers[chan.node_id]
done = set()