Skip to content

Commit

Permalink
do not ignore last hop if it is given specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Jul 25, 2021
1 parent 896c0a0 commit 79c9640
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def ignore_high_fee_hops(self, route):
max_fee_msat = 0
max_fee_hop = None
for hop in route.hops:
if route.hops[-2].chan_id == hop.chan_id and self.last_hop_channel:
continue
if hop.fee_msat > max_fee_msat:
max_fee_msat = hop.fee_msat
max_fee_hop = hop
Expand Down

0 comments on commit 79c9640

Please sign in to comment.