mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
show auto-connect in daemon status
This commit is contained in:
parent
ed256e064a
commit
e5b6b05482
1 changed files with 4 additions and 2 deletions
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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue