electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 5834b391ea82c677773f8fd670fc11904bea7c78
parent 50ad656c87fe59e5756a64a12ce31968bb3e1301
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 18 Jul 2017 18:11:26 +0200

network dialog: display branch size

Diffstat:
Mgui/qt/network_dialog.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py @@ -362,10 +362,12 @@ class NetworkChoiceLayout(object): status = _("Connected to %d nodes.")%n if n else _("Not connected") self.status_label.setText(status) if len(self.network.blockchains)>1: + chain = self.network.blockchain() checkpoint = self.network.get_checkpoint() name = self.network.get_blockchain_name(self.network.blockchain()) msg = _('Chain split detected at block %d')%checkpoint + '\n' msg += (_('You are following branch') if auto_connect else _('Your server is on branch'))+ ' ' + name + msg += ' (%d %s)' % (chain.get_branch_size(), _('blocks')) else: msg = '' self.split_label.setText(msg)