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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
19 additions and
16 deletions
-
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') |
|
|
|