From 50a272ec8f500396ca15ffa44f4b729142e6f410 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 23 May 2022 09:31:38 +0200 Subject: [PATCH] do not propose rebalance between channels to the same trampoline --- electrum/gui/qt/channels_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index 697947abf..e8f1434a2 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -209,7 +209,7 @@ class ChannelsList(MyTreeView): channel_id2 = idx2.sibling(idx2.row(), self.Columns.NODE_ALIAS).data(ROLE_CHANNEL_ID) chan1 = self.lnworker.channels.get(channel_id1) chan2 = self.lnworker.channels.get(channel_id2) - if chan1 and chan2: + if chan1 and chan2 and (self.lnworker.channel_db or chan1.node_id != chan2.node_id): menu.addAction(_("Rebalance"), lambda: self.parent.rebalance_dialog(chan1, chan2)) menu.exec_(self.viewport().mapToGlobal(position)) return