tcan_create_account - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 17216da392dd1fa6c21263fffe070087e8f0da1d DIR parent 7e0711f6ec42f15213623f73fc2c2a35c0537494 HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 30 Apr 2014 10:40:47 +0200 can_create_account Diffstat: M lib/wallet.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -245,7 +245,7 @@ class Abstract_Wallet: def can_create_accounts(self): - return not self.is_watching_only() + return False def set_up_to_date(self,b): t@@ -1473,13 +1473,15 @@ class Imported_Wallet(Abstract_Wallet): - class NewWallet(Abstract_Wallet): """class for BIP32 wallet""" def __init__(self, storage): Abstract_Wallet.__init__(self, storage) + def can_create_accounts(self): + return not self.is_watching_only() + def make_seed(self): import mnemonic, ecdsa entropy = ecdsa.util.randrange( pow(2,160) ) t@@ -1507,9 +1509,6 @@ class Wallet_2of2(NewWallet): NewWallet.__init__(self, storage) self.storage.put('wallet_type', '2of2', True) - def can_create_accounts(self): - return False - def create_account(self): xpub1 = self.master_public_keys.get("m/") xpub2 = self.master_public_keys.get("cold/") t@@ -1567,9 +1566,6 @@ class Wallet_2of3(Wallet_2of2): class OldWallet(Abstract_Wallet): - def can_create_accounts(self): - return False - def make_seed(self): import mnemonic seed = random_seed(128)