twatching_only wallets have a single account - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 217900bbfa3d0a957ccc0e780ceebb5d661581ad
DIR parent 242eca8821c43ecd39ae9803d168971d2d8d5243
HTML Author: ThomasV <thomasv@gitorious>
Date: Fri, 25 Apr 2014 11:48:13 +0200
watching_only wallets have a single account
Diffstat:
M lib/wallet.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -239,7 +239,7 @@ class NewWallet:
def can_create_accounts(self):
- return True
+ return not self.is_watching_only()
def set_up_to_date(self,b):
t@@ -322,9 +322,8 @@ class NewWallet:
def create_watching_only_wallet(self, xpub):
self.storage.put('seed_version', self.seed_version, True)
self.add_master_public_key("m/", xpub)
- xpub0 = self.add_master_keys("m/", "m/0'", None)
- account = BIP32_Account({'xpub':xpub0})
- self.add_account("m/0'", account)
+ account = BIP32_Account({'xpub':xpub})
+ self.add_account("m/", account)
def create_accounts(self, password):