From 02e6c49fa625284fb20f1d52100edffd5242d915 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 5 Nov 2024 08:46:53 +0100 Subject: [PATCH] Qt: fix tx grouping issue arising if onchain tx of a swap does not get mined. --- electrum/gui/qt/history_list.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py index 5ace1cb2d..52a0dc212 100644 --- a/electrum/gui/qt/history_list.py +++ b/electrum/gui/qt/history_list.py @@ -111,6 +111,10 @@ class HistoryNode(CustomNode): window = self.model.window tx_item = self.get_data() is_lightning = tx_item.get('lightning', False) + if not is_lightning and 'txid' not in tx_item: + # this may happen if two lightning tx have the same group id + # and the group does not have an onchain tx + is_lightning = True timestamp = tx_item['timestamp'] short_id = None if is_lightning: