can_create_account
authorThomasV <thomasv@gitorious>
Wed, 30 Apr 2014 08:40:47 +0000 (10:40 +0200)
committerThomasV <thomasv@gitorious>
Wed, 30 Apr 2014 08:40:47 +0000 (10:40 +0200)
lib/wallet.py

index 2e1ebed..8934492 100644 (file)
@@ -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):
@@ -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) )
@@ -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/")
@@ -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)