Browse Source

do not show pubkeu in validateaddress if the key is imported

master
thomasv 12 years ago
parent
commit
30f7d23297
  1. 3
      lib/commands.py

3
lib/commands.py

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

Loading…
Cancel
Save