electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4ce699bf2570a4478c1f467f676c46e42f63f2b4
parent 894a09e16488240d5e112fa293a99a3d45627d11
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:
Mlib/wallet.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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/")