From 4ce699bf2570a4478c1f467f676c46e42f63f2b4 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 23 Jan 2015 13:54:33 +0100 Subject: [PATCH] disable key import in all bip32 wallet classes; users should create an ImportedWallet --- lib/wallet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index e65b4a7dc..ef8a62cb5 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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) @@ -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/")