commit e5b6b05482dffb2d6370dad3f0fd21276fff5747
parent ed256e064a89df23c9455daae7c83150ac824b12
Author: ThomasV <thomasv@gitorious>
Date: Mon, 1 Jun 2015 11:05:23 +0200
show auto-connect in daemon status
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/electrum b/electrum
@@ -153,13 +153,15 @@ def run_daemon(config):
network = NetworkProxy(s, config)
network.start()
if cmd == 'status':
+ p = network.get_parameters()
print_json({
'path': network.config.path,
- 'server': network.get_parameters()[0],
+ 'server': p[0],
'blockchain_height': network.get_local_height(),
'server_height': network.get_server_height(),
'nodes': network.get_interfaces(),
- 'connected': network.is_connected()
+ 'connected': network.is_connected(),
+ 'auto-connect': p[4],
})
elif cmd == 'stop':
network.stop_daemon()