1
0

network: trivial clean-up

This commit is contained in:
SomberNight
2018-11-04 19:25:23 +01:00
parent 7a46bd1089
commit a89e67eeed
2 changed files with 10 additions and 8 deletions

View File

@@ -194,18 +194,18 @@ class Daemon(DaemonThread):
response = False
elif sub == 'status':
if self.network:
p = self.network.get_parameters()
net_params = self.network.get_parameters()
current_wallet = self.cmd_runner.wallet
current_wallet_path = current_wallet.storage.path \
if current_wallet else None
response = {
'path': self.network.config.path,
'server': p[0],
'server': net_params.host,
'blockchain_height': self.network.get_local_height(),
'server_height': self.network.get_server_height(),
'spv_nodes': len(self.network.get_interfaces()),
'connected': self.network.is_connected(),
'auto_connect': p[4],
'auto_connect': net_params.auto_connect,
'version': ELECTRUM_VERSION,
'wallets': {k: w.is_up_to_date()
for k, w in self.wallets.items()},