1
0

Do not route through channels for which we did not receive

both updates, because this often means one of the nodes is
offline.
This commit is contained in:
ThomasV
2019-07-13 08:46:17 +02:00
parent 30e942bead
commit b55f9e9e6a
3 changed files with 20 additions and 3 deletions

View File

@@ -1019,8 +1019,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)
self.network.path_finder.add_to_blacklist(short_chan_id)
def maybe_send_commitment(self, chan: Channel):
ctn_to_sign = chan.get_current_ctn(REMOTE) + 1