diff --git a/routes.py b/routes.py index b78bace..2b7ad8a 100644 --- a/routes.py +++ b/routes.py @@ -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