Browse Source

Merge pull request #5052 from JeremyRand/utxolist-for-loop

Refactor for loop in UTXOList
sqlite_db
ThomasV 6 years ago
committed by GitHub
parent
commit
01eaf0fe4e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      electrum/gui/qt/utxo_list.py

3
electrum/gui/qt/utxo_list.py

@ -47,6 +47,9 @@ class UTXOList(MyTreeView):
self.model().clear()
self.update_headers(self.__class__.headers)
for idx, x in enumerate(utxos):
self.insert_utxo(idx, x)
def insert_utxo(self, idx, x):
address = x.get('address')
height = x.get('height')
name = x.get('prevout_hash') + ":%d"%x.get('prevout_n')

Loading…
Cancel
Save