1
0

handle_error_from_failed_htlc: blacklist channel if cannot decode payload

This commit is contained in:
ThomasV
2021-02-07 12:34:28 +01:00
parent 4febbcdc2d
commit 2c2d3f3b30

View File

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