Browse Source

get_master_public_key: always return xpub of main account

283
ThomasV 11 years ago
parent
commit
5ce50f4421
  1. 7
      lib/wallet.py

7
lib/wallet.py

@ -1277,11 +1277,8 @@ class NewWallet(Deterministic_Wallet):
return 'm/' in self.master_private_keys.keys()
def get_master_public_key(self):
if self.is_watching_only():
return self.master_public_keys["m/0'"]
else:
return self.master_public_keys["m/"]
"""xpub of the main account"""
return self.master_public_keys["m/0'"]
def get_master_public_keys(self):
out = {}

Loading…
Cancel
Save