get_master_public_key: always return xpub of main account
authorThomasV <thomasv@gitorious>
Sun, 6 Jul 2014 21:20:27 +0000 (23:20 +0200)
committerThomasV <thomasv@gitorious>
Sun, 6 Jul 2014 21:20:27 +0000 (23:20 +0200)
lib/wallet.py

index 48aa098..16a259c 100644 (file)
@@ -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 = {}