tdisable key import in all bip32 wallet classes; users should create an ImportedWallet - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4ce699bf2570a4478c1f467f676c46e42f63f2b4 DIR parent 894a09e16488240d5e112fa293a99a3d45627d11 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 23 Jan 2015 13:54:33 +0100 disable key import in all bip32 wallet classes; users should create an ImportedWallet Diffstat: M lib/wallet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1274,6 +1274,9 @@ class BIP32_Wallet(Deterministic_Wallet): def is_watching_only(self): return not bool(self.master_private_keys) + def can_import(self): + return False + def get_master_public_key(self): return self.master_public_keys.get(self.root_name) t@@ -1482,9 +1485,6 @@ class Wallet_2of2(BIP32_Wallet, Mnemonic): root_derivation = "m/" wallet_type = '2of2' - def can_import(self): - return False - def create_main_account(self, password): xpub1 = self.master_public_keys.get("x1/") xpub2 = self.master_public_keys.get("x2/")