Browse Source

handle_error_from_failed_htlc: blacklist channel if cannot decode payload

patch-4
ThomasV 4 years ago
parent
commit
2c2d3f3b30
  1. 3
      electrum/lnworker.py

3
electrum/lnworker.py

@ -1055,7 +1055,8 @@ class LNWallet(LNWorker):
payload = self._decode_channel_update_msg(channel_update_as_received)
if payload is None:
self.logger.info(f'could not decode channel_update for failed htlc: {channel_update_as_received.hex()}')
return True
blacklist = True
else:
r = self.channel_db.add_channel_update(payload)
blacklist = False
short_channel_id = ShortChannelID(payload['short_channel_id'])

Loading…
Cancel
Save