Remove legacy child-pool merge mining layer
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 36s

This commit is contained in:
Codex Bot
2026-03-21 19:06:14 +01:00
parent 141e91909a
commit e20b6433ba
17 changed files with 108 additions and 1069 deletions

View File

@@ -79,37 +79,17 @@ mergedStats = {};
let mergedApis = {};
$(function() {
let merged_apis = $.ajax({
url: `${api}/get_apis`,
dataType: 'json',
cache: 'false'
})
let poolStats = $.ajax({
url: `${api}/stats`,
dataType: 'json',
cache: 'false'
})
Promise.all([poolStats, merged_apis])
Promise.all([poolStats])
.then(values => {
lastStats = values[0]
mergedApis = values[1]
let subs = [];
Object.keys(mergedApis).some(key => {
let apiUrl = `${mergedApis[key].api}/stats`
subs.push($.ajax({url: apiUrl, dataType: 'json', cache: 'false'}))
})
Promise.all(subs)
.then(data => {
data.forEach(item => {
mergedStats[item.config.coin] = item
})
$('#poolVersion').html(lastStats.config.version);
routePage();
})
$('#poolVersion').html(lastStats.config.version);
routePage();
})
});