Skip to content

Commit

Permalink
remove "dead" code, the last hop never has fees, anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Jul 25, 2021
1 parent ac7255b commit 896c0a0
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 @@ -121,8 +121,6 @@ def ignore_high_fee_hops(self, route):
max_fee_msat = 0
max_fee_hop = None
for hop in route.hops:
if self.last_hop_channel and self.last_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 896c0a0

Please sign in to comment.