1
0

lnworker: get_channel_by_short_id to use remote scid_alias

This is needed when forwarding payments
This commit is contained in:
ThomasV
2023-09-17 11:11:24 +02:00
parent 375f96f7fa
commit cffbe44c07

View File

@@ -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()