From fd8687ce182e1ee889ab6d29868152cb2b1a76b9 Mon Sep 17 00:00:00 2001 From: thomasv Date: Mon, 25 Feb 2013 19:04:41 +0100 Subject: [PATCH] fix --- lib/wallet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index fb47a0356..4ddc67b49 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -336,8 +336,7 @@ class Wallet: for tx_hash, tx in self.transactions.items(): is_send, _, _ = self.get_tx_value(tx) if is_send: - for o in tx.outputs: - addr = o.get('address') + for addr, v in tx.outputs: if not self.is_mine(addr) and addr not in self.addressbook: self.addressbook.append(addr) # redo labels