[trivial] use namedtuple field by name

This commit is contained in:
SomberNight 2019-03-03 17:34:03 +01:00
parent 7458461f13
commit ef1330df5d
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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):