t[trivial] use namedtuple field by name - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit ef1330df5d3f7b5021bf7fc453657a7ea0d3af1c
DIR parent 7458461f130933ba9b38d7258f05dec3b7832d1c
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 3 Mar 2019 17:34:03 +0100
t[trivial] use namedtuple field by name
Diffstat:
M electrum/address_synchronizer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py
t@@ -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):