show auto-connect in daemon status
This commit is contained in:
6
electrum
6
electrum
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user