From cffbe44c07a59a7d6a3d5183181659a57de8d2c0 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 17 Sep 2023 11:11:24 +0200 Subject: [PATCH] lnworker: get_channel_by_short_id to use remote scid_alias This is needed when forwarding payments --- electrum/lnworker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 65dffba35..bd202ab91 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -1329,6 +1329,8 @@ class LNWallet(LNWorker): for chan in self.channels.values(): if chan.short_channel_id == short_channel_id: return chan + if chan.get_remote_scid_alias() == short_channel_id: + return chan def can_pay_invoice(self, invoice: Invoice) -> bool: assert invoice.is_lightning()