From 79c964092bee01d71e114e9a9d41c8a3c836bcfd Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sun, 25 Jul 2021 15:35:44 +0200 Subject: [PATCH] do not ignore last hop if it is given specifically --- routes.py | 2 ++ 1 file changed, 2 insertions(+) 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