From ac7255ba3114b97e623b793d6ff33d740b5e0793 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sun, 25 Jul 2021 15:30:53 +0200 Subject: [PATCH] bugfix: also consider first hop's fees even if it has the highest fee, we'd ignore the second channel on the route --- routes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/routes.py b/routes.py index 7b3473d..fafcd61 100644 --- a/routes.py +++ b/routes.py @@ -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