daemon status info
This commit is contained in:
parent
2120b1a573
commit
d60dc94e16
4
electrum
4
electrum
|
@ -262,7 +262,9 @@ if __name__ == '__main__':
|
||||||
network.start()
|
network.start()
|
||||||
if arg == 'status':
|
if arg == 'status':
|
||||||
print_json({
|
print_json({
|
||||||
'server':network.main_server(),
|
'main_server': network.get_parameters()[0],
|
||||||
|
'height': network.get_local_height(),
|
||||||
|
'nodes': network.get_interfaces(),
|
||||||
'connected': network.is_connected()
|
'connected': network.is_connected()
|
||||||
})
|
})
|
||||||
elif arg == 'stop':
|
elif arg == 'stop':
|
||||||
|
|
Loading…
Reference in New Issue