electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 30f7d23297287302e7b68995a1b8a4c6e4c37c99
parent 75f7050edcf26fe9773eb7e22a7ee96af8bf23a0
Author: thomasv <thomasv@gitorious>
Date:   Sun, 15 Sep 2013 15:13:04 +0200

do not show pubkeu in validateaddress if the key is imported

Diffstat:
Mlib/commands.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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):