1
0

qml: don't crash when tx not found on histogram event. closes #8332

This commit is contained in:
Sander van Grieken
2023-04-22 11:40:36 +02:00
parent 75a9a4fce9
commit 7383cdc474

View File

@@ -253,7 +253,8 @@ class QETransactionListModel(QAbstractListModel, QtEventListener):
continue
txid = tx_item['txid']
tx = self.wallet.db.get_transaction(txid)
assert tx is not None
if not tx:
continue
txinfo = self.wallet.get_tx_info(tx)
status, status_str = self.wallet.get_tx_status(txid, txinfo.tx_mined_status)
tx_item['date'] = status_str