Skip to content

Commit

Permalink
Don't prune node associated with From channel when specified but expe…
Browse files Browse the repository at this point in the history
…nsive
  • Loading branch information
accumulator committed Aug 10, 2020
1 parent 6b192b6 commit 0c42dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def ignore_edge_with_highest_fee(self, route):

debugnobreak("High fees (%s msat), " % max_fee_msat)

if not self.deep:
if not self.deep and not (self.first_hop_channel != None and self.first_hop_channel == max_fee_hop.pub_key):
if max_fee_hop.pub_key in self.node_high_fee_edges:
self.node_high_fee_edges[max_fee_hop.pub_key] += 1
if self.node_high_fee_edges[max_fee_hop.pub_key] > 3:
Expand Down

0 comments on commit 0c42dd1

Please sign in to comment.