URI: 
       tdo not show pubkeu in validateaddress if the key is imported - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 30f7d23297287302e7b68995a1b8a4c6e4c37c99
   DIR parent 75f7050edcf26fe9773eb7e22a7ee96af8bf23a0
  HTML 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:
         M lib/commands.py                     |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -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):