1
0

psbt_nostr: qml: don't let iterator overwrite param

This commit is contained in:
Sander van Grieken
2025-05-14 12:48:47 +02:00
parent 1b031d432e
commit f535817006

View File

@@ -105,8 +105,8 @@ class Plugin(PsbtNostrPlugin):
@hook
def load_wallet(self, wallet: 'Abstract_Wallet'):
# remove existing, only foreground wallet active
for wallet in self.cosigner_wallets.copy().keys():
self.remove_cosigner_wallet(wallet)
for _wallet in self.cosigner_wallets.copy().keys():
self.remove_cosigner_wallet(_wallet)
if not isinstance(wallet, Multisig_Wallet):
return
if wallet.wallet_type == '2fa':