From e341a6794bae7618fda5d8d63c28efb07a4f2c0c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 24 Oct 2023 12:28:08 +0200 Subject: [PATCH] lnworker: fix get_scid_alias for forwarding Note: this issue is currently not detected in python unittests, it shows up only in regtest, and is not currently tested. One would need to use a proper LNWallet instance in unit tests. --- electrum/lnworker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index e23856bd1..7c687ae43 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -1372,6 +1372,8 @@ class LNWallet(LNWorker): return chan if chan.get_remote_scid_alias() == short_channel_id: return chan + if chan.get_local_scid_alias() == short_channel_id: + return chan def can_pay_invoice(self, invoice: Invoice) -> bool: assert invoice.is_lightning()