From e033a5e67bcc3c440e12cf7188b05ef8f7994c8a Mon Sep 17 00:00:00 2001 From: f321x Date: Mon, 5 Jan 2026 16:25:24 +0100 Subject: [PATCH] psbt_nostr: add EventListener comment to CosignerWallet I got confused how on_event_proxy_set can even work if CosignerWallet doesn't inherit from EventListener until i figured out its children use the EventListener too. To avoid this confusion i added two comments. --- electrum/plugins/psbt_nostr/psbt_nostr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/plugins/psbt_nostr/psbt_nostr.py b/electrum/plugins/psbt_nostr/psbt_nostr.py index 6d45349bf..929984457 100644 --- a/electrum/plugins/psbt_nostr/psbt_nostr.py +++ b/electrum/plugins/psbt_nostr/psbt_nostr.py @@ -74,7 +74,7 @@ class PsbtNostrPlugin(BasePlugin): self.cosigner_wallets.pop(wallet) -class CosignerWallet(Logger): +class CosignerWallet(Logger): # children have to inherit EventListener and register callbacks # one for each open window (Qt) / open wallet (QML) # if user signs a tx, we have the password # if user receives a dm? needs to enter password first @@ -124,6 +124,7 @@ class CosignerWallet(Logger): @event_listener async def on_event_proxy_set(self, *args): + # note: the callbacks get registered in the child classes of CosignerWallet if not (self.network and self.nostr_pubkey): return await self.stop()