mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
gui: show only initialized peers
This commit is contained in:
parent
f5eb369fb7
commit
eae8f1a139
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class ChannelsList(MyTreeView):
|
||||||
|
|
||||||
def update_status(self):
|
def update_status(self):
|
||||||
channel_db = self.parent.network.channel_db
|
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)
|
msg = _('{} peers, {} nodes, {} channels.').format(num_peers, channel_db.num_nodes, channel_db.num_channels)
|
||||||
self.status.setText(msg)
|
self.status.setText(msg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue