Skip to content

Commit

Permalink
bugfix: also consider first hop's fees
Browse files Browse the repository at this point in the history
even if it has the highest fee, we'd ignore the second channel on the route
  • Loading branch information
C-Otto committed Jul 25, 2021
1 parent 21baea1 commit ac7255b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ def ignore_high_fee_hops(self, route):
for hop in route.hops:
if self.last_hop_channel and self.last_hop_channel.chan_id == hop.chan_id:
continue
if self.first_hop_channel and self.first_hop_channel.chan_id == hop.chan_id:
continue
if hop.fee_msat > max_fee_msat:
max_fee_msat = hop.fee_msat
max_fee_hop = hop
Expand Down

0 comments on commit ac7255b

Please sign in to comment.