1
0

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.
This commit is contained in:
f321x
2026-01-05 16:25:24 +01:00
parent 0d380218a6
commit e033a5e67b

View File

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