Browse Source

Fix 992c70a688

This works for ordinary wallets at least; cannot test hardware.
But after staring for ages I think it's right.
283
Neil Booth 9 years ago
parent
commit
7a55d02654
  1. 2
      lib/plugins.py
  2. 2
      lib/wallet.py

2
lib/plugins.py

@ -70,7 +70,7 @@ def init_plugins(config, is_local, gui_name):
def register_wallet_type(name, x):
import wallet
x += (lambda: plugin_loader(config, name),)
x += (lambda storage: plugin_loader(config, name).constructor(storage),)
wallet.wallet_types.append(x)
descriptions = electrum_plugins.descriptions

2
lib/wallet.py

@ -1927,7 +1927,7 @@ class Wallet(object):
if wallet_type:
for cat, t, name, loader in wallet_types:
if t == wallet_type:
WalletClass = lambda storage: apply(loader().constructor, (storage,))
WalletClass = loader
break
else:
if re.match('(\d+)of(\d+)', wallet_type):

Loading…
Cancel
Save