From ca6ecd56f2568220143e92250796d557244e06a8 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 3 Mar 2021 12:30:29 +0100 Subject: [PATCH] fix route for non-trampoline MPP --- electrum/lnworker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index ec7ac7331..f2ea1f7c9 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -1422,7 +1422,6 @@ class LNWallet(LNWorker): self.logger.info('not enough margin to pay trampoline fee') raise NoPathFound() else: - # then we need bucket_amount_msat that includes the trampoline fees.. then create small routes here for chan_id, part_amount_msat in bucket: channel = self.channels[chan_id] route = self.create_route_for_payment( @@ -1432,7 +1431,7 @@ class LNWallet(LNWorker): r_tags=r_tags, t_tags=t_tags, invoice_features=invoice_features, outgoing_channel=channel, full_path=None) - routes.append((route, part_amount_msat, bucket_amount_msat, bucket_payment_secret)) + routes.append((route, part_amount_msat, amount_msat, min_cltv_expiry, payment_secret, None)) self.logger.info(f"found acceptable split configuration: {list(s[0].values())} rating: {s[1]}") break except NoPathFound: