Browse Source

can_create_account

283
ThomasV 11 years ago
parent
commit
17216da392
  1. 12
      lib/wallet.py

12
lib/wallet.py

@ -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)

Loading…
Cancel
Save