nuke/web/js
Xe Iaso c661bc37d1
fix(worker): constrain nonce value to be a whole integer (#1045)
* fix(worker): constrain nonce value to be a whole integer

Closes #1043

Sometimes the worker could get into a strange state where it has a
decimal nonce, but the server assumes that the nonce can only be a whole
number. This patch constrains the nonce to be a whole number on the
worker end by detecting if the nonce is a decimal number and then
truncating away the decimal portion.

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore: spelling

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(algorithms/fast): truncate decimal place on number of threads

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-08-26 14:05:03 -04:00
..
algorithms fix(worker): constrain nonce value to be a whole integer (#1045) 2025-08-26 14:05:03 -04:00
worker fix(worker): constrain nonce value to be a whole integer (#1045) 2025-08-26 14:05:03 -04:00
bench.mjs refactor(web): redo proof of work web worker logic (#941) 2025-08-02 11:27:26 -04:00
main.mjs fix(web): embed challenge ID in pass-challenge invocations (#944) 2025-08-04 18:49:19 +00:00