Browse Source

temporary fix wallet constructors

283
ThomasV 9 years ago
parent
commit
9d76bf6828
  1. 2
      lib/plugins.py
  2. 3
      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 storage: plugin_loader(config, name).constructor(storage),)
x += (lambda: plugin_loader(config, name),)
wallet.wallet_types.append(x)
descriptions = electrum_plugins.descriptions

3
lib/wallet.py

@ -1927,6 +1927,9 @@ class Wallet(object):
if wallet_type:
for cat, t, name, loader in wallet_types:
if t == wallet_type:
if cat in ['hardware', 'twofactor']:
WalletClass = lambda storage: apply(loader().constructor, (storage,))
else:
WalletClass = loader
break
else:

Loading…
Cancel
Save