From 30f7d23297287302e7b68995a1b8a4c6e4c37c99 Mon Sep 17 00:00:00 2001 From: thomasv Date: Sun, 15 Sep 2013 15:13:04 +0200 Subject: [PATCH] do not show pubkeu in validateaddress if the key is imported --- lib/commands.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index 958393a..77f669e 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -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): -- 1.7.1