do not show pubkeu in validateaddress if the key is imported

This commit is contained in:
thomasv 2013-09-15 15:13:04 +02:00
parent 75f7050edc
commit 30f7d23297
1 changed files with 3 additions and 2 deletions

View File

@ -166,8 +166,9 @@ class Commands:
out['address'] = addr
out['ismine'] = is_mine
if is_mine:
out['pubkey'] = self.wallet.get_public_key(addr)
account, sequence = self.wallet.get_address_index(addr)
if account != -1:
out['pubkey'] = self.wallet.get_public_key(addr)
return out
def getbalance(self, account= None):