show auto-connect in daemon status

This commit is contained in:
ThomasV 2015-06-01 11:05:23 +02:00
parent ed256e064a
commit e5b6b05482

View file

@ -153,13 +153,15 @@ def run_daemon(config):
network = NetworkProxy(s, config) network = NetworkProxy(s, config)
network.start() network.start()
if cmd == 'status': if cmd == 'status':
p = network.get_parameters()
print_json({ print_json({
'path': network.config.path, 'path': network.config.path,
'server': network.get_parameters()[0], 'server': p[0],
'blockchain_height': network.get_local_height(), 'blockchain_height': network.get_local_height(),
'server_height': network.get_server_height(), 'server_height': network.get_server_height(),
'nodes': network.get_interfaces(), 'nodes': network.get_interfaces(),
'connected': network.is_connected() 'connected': network.is_connected(),
'auto-connect': p[4],
}) })
elif cmd == 'stop': elif cmd == 'stop':
network.stop_daemon() network.stop_daemon()