electrum

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

commit bfe7e9dc6edba1a308d1199846e8f2d4cd355192
parent 9295d5257bf93b397443ca169e4932528a5d4078
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 24 Oct 2016 12:52:16 +0200

add version to daemon status, simply display number of spv nodes

Diffstat:
Mlib/daemon.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/daemon.py b/lib/daemon.py @@ -31,6 +31,7 @@ import time import jsonrpclib from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer, SimpleJSONRPCRequestHandler +from version import ELECTRUM_VERSION from network import Network from util import json_decode, DaemonThread from util import print_msg, print_error, print_stderr @@ -153,9 +154,10 @@ class Daemon(DaemonThread): 'server': p[0], 'blockchain_height': self.network.get_local_height(), 'server_height': self.network.get_server_height(), - 'nodes': self.network.get_interfaces(), + 'spv_nodes': len(self.network.get_interfaces()), 'connected': self.network.is_connected(), 'auto_connect': p[4], + 'version': ELECTRUM_VERSION, 'wallets': {k: w.is_up_to_date() for k, w in self.wallets.items()}, }