The mining config generator adds newpool.pw which doesn't have XKR.
Here's the JS I used on the old website for reference:
var dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(exportObj));
var downloadAnchorNode = document.createElement('a');
downloadAnchorNode.setAttribute("href", dataStr);
downloadAnchorNode.setAttribute("download", exportName + ".json");
document.body.appendChild(downloadAnchorNode); // required for firefox
downloadAnchorNode.click();
downloadAnchorNode.remove();
}
function shuffle(array) {
array.sort(() => Math.random() - 0.5);
return (array);
}
function findPools() {
//Hey dont mind this, its just a rlly jank thing for now, hard coded ig
let listOfPools = [
"pool.kryptokrona.se:3333",
"pool2.kryptokrona.se:3333",
"swepool.org:3333"
];
return shuffle(listOfPools);
}
jQuery(document).ready(function ($) {
// Your code in here
jQuery('.generate-address-button').click(function () {
let thePool = findPools();
let poolList = `"pools": [`
for (let i = 0; i < thePool.length; i++) {
let temp = `{
"algo": "cn-pico",
"coin": null,
"url": "` + thePool[i] + `",
"user": "` + jQuery('.generate-address-field').val() + `",
"pass": "x",
"rig-id": null,
"nicehash": false,
"keepalive": false,
"enabled": true,
"tls": false,
"tls-fingerprint": null,
"daemon": false,
"socks5": null,
"self-select": null
}`;
if (i + 1 !== thePool.length) {
temp += `,`;
}
poolList += temp;
}
poolList += `],`;
let config_file_json = JSON.parse(`
{
"api": {
"id": null,
"worker-id": null
},
"http": {
"enabled": false,
"host": "127.0.0.1",
"port": 0,
"access-token": null,
"restricted": true
},
"autosave": true,
"background": false,
"colors": true,
"randomx": {
"init": -1,
"mode": "auto",
"1gb-pages": false,
"rdmsr": true,
"wrmsr": true,
"numa": true
},
"cpu": {
"enabled": true,
"huge-pages": true,
"hw-aes": null,
"priority": null,
"memory-pool": false,
"yield": true,
"asm": true,
"argon2-impl": null,
"astrobwt-max-size": 550,
"astrobwt-avx2": false,
"argon2": [0, 1, 2, 3],
"astrobwt": [0, 1, 2, 3],
"cn": [
[1, 0]
],
"cn-heavy": [
[1, 0]
],
"cn-lite": [
[1, 0],
[1, 2]
],
"cn-pico": [
[2, 0],
[2, 1],
[2, 2],
[2, 3]
],
"rx": [0],
"rx/arq": [0, 1, 2, 3],
"rx/wow": [0, 2],
"cn/0": false,
"cn-lite/0": false,
"rx/keva": "rx/wow"
},
"opencl": {
"enabled": true,
"cache": true,
"loader": null,
"platform": "AMD",
"adl": true,
"cn/0": false,
"cn-lite/0": false
},
"cuda": {
"enabled": true,
"loader": null,
"nvml": true,
"cn/0": false,
"cn-lite/0": false
},
"donate-level": 5,
"donate-over-proxy": 1,
"log-file": null,
` + poolList.valueOf() + `
"print-time": 60,
"health-print-time": 60,
"retries": 5,
"retry-pause": 5,
"syslog": false,
"tls": {
"enabled": false,
"protocols": null,
"cert": null,
"cert_key": null,
"ciphers": null,
"ciphersuites": null,
"dhparam": null
},
"user-agent": null,
"verbose": 0,
"watch": true
}`);
downloadObjectAsJson(config_file_json, 'config');
})
});
The listOfPools variable could also use an update.
bug