qml: fix follow-up 392c219913
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user