added preview mode

This commit is contained in:
2024-11-20 04:23:14 +02:00
parent a41e5049ba
commit 52f7a3a640
10 changed files with 376 additions and 19 deletions

View File

@@ -78,9 +78,7 @@ async function computePow(chatBytes, difficulty) {
workBufferPtr = sbrk(workBufferLength);
}
console.log('Starting POW computation...');
const nonce = compute(hashPtr, workBufferPtr, workBufferLength, difficulty);
console.log('POW computation finished.');
return { nonce, chatBytesArray };
}