1
0

lnrouter.get_distances: fix exception due to rare race

if the graph is being updated while the pathfinding is running,
channel_info might be None here
This commit is contained in:
SomberNight
2021-03-03 14:10:57 +01:00
parent 3fa1aed8cd
commit 95b7c976e0

View File

@@ -275,6 +275,8 @@ class LNPathFinder(Logger):
continue
channel_info = self.channel_db.get_channel_info(
edge_channel_id, my_channels=my_channels, private_route_edges=private_route_edges)
if channel_info is None:
continue
edge_startnode = channel_info.node2_id if channel_info.node1_id == edge_endnode else channel_info.node1_id
is_mine = edge_channel_id in my_channels
if is_mine: