1
0

addr_sync: migrate usages of get_txpos to get_tx_height

the return value of get_txpos is fine-tuned for sorting... other uses are highly questionable.
This commit is contained in:
SomberNight
2023-04-04 17:49:46 +00:00
parent f8f0af4a2f
commit f0e89b3ef6
4 changed files with 21 additions and 15 deletions

View File

@@ -246,7 +246,9 @@ class TxInOutWidget(QWidget):
tx_height, tx_pos = None, None
tx_hash = self.tx.txid()
if tx_hash:
tx_height, tx_pos = self.wallet.adb.get_txpos(tx_hash)
tx_mined_info = self.wallet.adb.get_tx_height(tx_hash)
tx_height = tx_mined_info.height
tx_pos = tx_mined_info.txpos
cursor = o_text.textCursor()
for txout_idx, o in enumerate(self.tx.outputs()):
if tx_height is not None and tx_pos is not None and tx_pos >= 0: