tFix 992c70a6885f22150086658cafb931d61240e505 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7a55d026549527eb13dc19c2c812fa4e82a93289 DIR parent f2fb856f1cbe3bf5562664c78e6dfa374d13bb23 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Wed, 2 Sep 2015 21:27:12 +0900 Fix 992c70a6885f22150086658cafb931d61240e505 This works for ordinary wallets at least; cannot test hardware. But after staring for ages I think it's right. Diffstat: M lib/plugins.py | 2 +- M lib/wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/plugins.py b/lib/plugins.py t@@ -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 DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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):