fix: addressbook

This commit is contained in:
thomasv 2013-02-25 18:17:02 +01:00
parent 41a2fa427f
commit 1bba3ffbd7
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +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']:
for o in tx.outputs:
addr = o.get('address')
if not self.is_mine(addr) and addr not in self.addressbook:
self.addressbook.append(addr)