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.
This commit is contained in:
@@ -1372,6 +1372,8 @@ class LNWallet(LNWorker):
|
|||||||
return chan
|
return chan
|
||||||
if chan.get_remote_scid_alias() == short_channel_id:
|
if chan.get_remote_scid_alias() == short_channel_id:
|
||||||
return chan
|
return chan
|
||||||
|
if chan.get_local_scid_alias() == short_channel_id:
|
||||||
|
return chan
|
||||||
|
|
||||||
def can_pay_invoice(self, invoice: Invoice) -> bool:
|
def can_pay_invoice(self, invoice: Invoice) -> bool:
|
||||||
assert invoice.is_lightning()
|
assert invoice.is_lightning()
|
||||||
|
|||||||
Reference in New Issue
Block a user