commit ef1330df5d3f7b5021bf7fc453657a7ea0d3af1c
parent 7458461f130933ba9b38d7258f05dec3b7832d1c
Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 3 Mar 2019 17:34:03 +0100
[trivial] use namedtuple field by name
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py
@@ -263,7 +263,7 @@ class AddressSynchronizer(PrintError):
add_value_from_prev_output()
# add outputs
for n, txo in enumerate(tx.outputs()):
- v = txo[2]
+ v = txo.value
ser = tx_hash + ':%d'%n
addr = self.get_txout_address(txo)
if addr and self.is_mine(addr):