From f78340efbc47ea38188ddf05a589547a3a508d35 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 19 Oct 2023 15:26:20 +0000 Subject: [PATCH] lnworker: (trivial) fix type hint follow-up 4c42840c1cc661f02474bf851303fe76734789cd --- electrum/lnworker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index ef2f32c77..428c8ce32 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -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)