tchannel blacklist: minor fix - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a5570d94f31d41d0836f27e2da14ed3e1458f146 DIR parent fed6c96693c8a8ce31bed310eff19d43a86f1384 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 20 May 2019 10:26:19 +0200 channel blacklist: minor fix Diffstat: M electrum/lnpeer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py t@@ -998,6 +998,7 @@ class Peer(Logger): message_type, payload = decode_msg(channel_update) payload['raw'] = channel_update orphaned, expired, deprecated, good, to_delete = self.channel_db.filter_channel_updates([payload]) + blacklist = False if good: self.verify_channel_updates(good) self.channel_db.update_policies(good, to_delete) t@@ -1010,7 +1011,7 @@ class Peer(Logger): elif expired: blacklist = True elif deprecated: - self.logger.info(f'channel update is not more recent. blacklisting channel') + self.logger.info(f'channel update is not more recent.') blacklist = True else: blacklist = True t@@ -1023,6 +1024,7 @@ class Peer(Logger): except IndexError: self.logger.info("payment destination reported error") else: + self.logger.info(f'blacklisting channel {bh2u(short_chan_id)}') self.network.path_finder.blacklist.add(short_chan_id) def maybe_send_commitment(self, chan: Channel):