1
0

lnworker: (trivial) fix type hint

follow-up 4c42840c1c
This commit is contained in:
SomberNight
2023-10-19 15:26:20 +00:00
parent 783dc0cdd5
commit f78340efbc

View File

@@ -2281,9 +2281,10 @@ class LNWallet(LNWorker):
info = info._replace(status=status)
self.save_payment_info(info)
def is_forwarded_htlc_notify(self, chan: Channel, htlc_id: int) -> None:
def is_forwarded_htlc_notify(self, chan: Channel, htlc_id: int) -> bool:
"""Called when an HTLC we offered on chan gets irrevocably fulfilled or failed.
If we find this was a forwarded HTLC, the upstream peer is notified.
Returns whether this was a forwarded HTLC.
"""
fw_info = chan.short_channel_id.hex(), htlc_id
upstream_peer_pubkey = self.downstream_htlc_to_upstream_peer_map.get(fw_info)