|
@ -13,14 +13,14 @@ const statusScript = { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
refreshApiStatus: function() { |
|
|
refreshApiStatus: function() { |
|
|
lib_msg.displayMessage('Loading API status info...'); |
|
|
//lib_msg.displayMessage('Loading API status info...');
|
|
|
return lib_api.getApiStatus().then(apiStatus => { |
|
|
return lib_api.getApiStatus().then(apiStatus => { |
|
|
if (apiStatus) { |
|
|
if (apiStatus) { |
|
|
$('#tracker-status-ind').html('✓') |
|
|
$('#tracker-status-ind').html('✓') |
|
|
$('#tracker-status-ind').css('color', '#76d776') |
|
|
$('#tracker-status-ind').css('color', '#76d776') |
|
|
$('#tracker-uptime').text(apiStatus['uptime']) |
|
|
$('#tracker-uptime').text(apiStatus['uptime']) |
|
|
$('#tracker-chaintip').text(apiStatus['blocks']) |
|
|
$('#tracker-chaintip').text(apiStatus['blocks']) |
|
|
lib_msg.cleanMessagesUi() |
|
|
//lib_msg.cleanMessagesUi()
|
|
|
} |
|
|
} |
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
$('#tracker-status-ind').text('X') |
|
|
$('#tracker-status-ind').text('X') |
|
@ -32,7 +32,7 @@ const statusScript = { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
refreshPushTxStatus: function() { |
|
|
refreshPushTxStatus: function() { |
|
|
lib_msg.displayMessage('Loading Tracker status info...'); |
|
|
//lib_msg.displayMessage('Loading Tracker status info...');
|
|
|
lib_api.getPushtxStatus().then(pushTxStatus => { |
|
|
lib_api.getPushtxStatus().then(pushTxStatus => { |
|
|
if (pushTxStatus) { |
|
|
if (pushTxStatus) { |
|
|
const data = pushTxStatus['data'] |
|
|
const data = pushTxStatus['data'] |
|
@ -46,7 +46,7 @@ const statusScript = { |
|
|
$('#node-network').text(network) |
|
|
$('#node-network').text(network) |
|
|
$('#node-conn').text(data['bitcoind']['conn']) |
|
|
$('#node-conn').text(data['bitcoind']['conn']) |
|
|
$('#node-relay-fee').text(data['bitcoind']['relayfee']) |
|
|
$('#node-relay-fee').text(data['bitcoind']['relayfee']) |
|
|
lib_msg.cleanMessagesUi() |
|
|
//lib_msg.cleanMessagesUi()
|
|
|
} |
|
|
} |
|
|
}).catch(e => { |
|
|
}).catch(e => { |
|
|
$('#node-status-ind').text('-') |
|
|
$('#node-status-ind').text('-') |
|
|