tgui: show only initialized peers - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit eae8f1a139ae5ebc411c9a33352744ee1897bf1c DIR parent f5eb369fb71ba82c41908df27b6ee90baf99ba78 HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 16 Mar 2019 21:21:18 +0100 gui: show only initialized peers Diffstat: M electrum/gui/qt/channels_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py t@@ -105,7 +105,7 @@ class ChannelsList(MyTreeView): def update_status(self): channel_db = self.parent.network.channel_db - num_peers = len(self.parent.wallet.lnworker.peers) + num_peers = sum([p.initialized.is_set() for p in self.parent.wallet.lnworker.peers.values()]) msg = _('{} peers, {} nodes, {} channels.').format(num_peers, channel_db.num_nodes, channel_db.num_channels) self.status.setText(msg)