From f9c427124da5ce46b30e4fdfce6cc856f3593aad Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 20 Feb 2025 09:38:47 +0100 Subject: [PATCH] qml: fix follow-up 392c219913a9fe8b5946f1549b92bf39e8f7fcb8 --- electrum/gui/qml/qetransactionlistmodel.py | 2 +- electrum/lnworker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/qetransactionlistmodel.py b/electrum/gui/qml/qetransactionlistmodel.py index b93ff505c..dc4175c1b 100644 --- a/electrum/gui/qml/qetransactionlistmodel.py +++ b/electrum/gui/qml/qetransactionlistmodel.py @@ -127,7 +127,7 @@ class QETransactionListModel(QAbstractListModel, QtEventListener): #self._logger.debug(str(tx_item)) item = tx_item - item['key'] = item.get('txid') or item.get('group_id') or item['payment_hash'] + item['key'] = item.get('txid') or item['payment_hash'] or item['group_id'] # fixme: this is fragile if 'lightning' not in item: item['lightning'] = False diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 693d07734..f231e679d 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -1009,7 +1009,7 @@ class LNWallet(LNWorker): timestamp = timestamp or 0, label=label, ) - out[payment_hash] = item + out[payment_hash.hex()] = item for chan in itertools.chain(self.channels.values(), self.channel_backups.values()): # type: AbstractChannel item = chan.get_funding_height() if item is None: