electrum

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

commit c8ddf49833b03ba064e7e27847767bb4e65dbe8f
parent 2db7b159e35414572a01473bc1a52cd94d2c48b6
Author: thomasv <thomasv@gitorious>
Date:   Wed, 21 Dec 2011 18:10:21 +0100

fix: display imported addresses too

Diffstat:
Mclient/gui.py | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/client/gui.py b/client/gui.py @@ -921,14 +921,13 @@ class BitcoinGUI: def update_receiving_tab(self): self.recv_list.clear() - for address in self.wallet.addresses: + for address in self.wallet.all_addresses(): if self.wallet.is_change(address):continue label = self.wallet.labels.get(address) n = 0 - h = self.wallet.history.get(address) - if h: - for item in h: - if not item['is_in'] : n=n+1 + h = self.wallet.history.get(address,[]) + for item in h: + if not item['is_in'] : n=n+1 tx = "None" if n==0 else "%d"%n self.recv_list.append((address, label, tx ))