handle_error_from_failed_htlc: blacklist channel if cannot decode payload
This commit is contained in:
@@ -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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user