switch 2 maps, one for ddos enabled, the other to disable captcha leaving only POW

minor change script messages
todo: update CLI to allow changing
This commit is contained in:
Thomas Lynch
2021-11-24 19:14:24 +11:00
parent 5e04ebd962
commit 5a4a02beba
7 changed files with 55 additions and 16 deletions

View File

@ -18,7 +18,7 @@ onmessage = async function(e) {
if(result[challengeIndex] === 0xb0
&& middle === true
&& result[challengeIndex+difficulty+1] === 0x0b){
console.log('Worker thread found solution', challenge, i, result[challengeIndex], result[challengeIndex+1]);
console.log('Worker thread found solution:', i);
postMessage([id, i]);
break;
}