]> zoso.dev Git - nano-pow.git/commit
In CLI, capture logging from spawned server process. In compute shader, fix difficult...
authorChris Duncan <chris@zoso.dev>
Tue, 22 Apr 2025 21:52:14 +0000 (14:52 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 22 Apr 2025 21:52:14 +0000 (14:52 -0700)
commit972f59f5fb51a9a97696bf4a44224115b39d27d9
treef5bca232043f38cacb3c4c1e9a4372b1937187d3
parente60659697593b72150e58fe06987b5cb8a4af300
In CLI, capture logging from spawned server process. In compute shader, fix difficulty comparison of low bits, reduce workgroup size to 64, and update doc comments. In GPU, fix bug in load loop that checks for the GPU device, share bind group as static variable between pipelines, dispatch once on setup to compile and cache shader prior to actual work calls, save compute results in static variable to reduce memory footprint, lower timeout when tool is busy, allow difficulty of zero, eliminate a Math.random() call by implementing a sliding randomness value for the search seed, and throw an error if work to validate does not match nonce returned by compute result. In launch script, add max HTTP header size limit to protect server process. In test script, check more generate calls. In package, reduce run size of benchmark. In server, replace temp file for puppeteer page with intercepted HTTPS request to gain secure context for WebGPU, send logs over IPC to CLI, implement more constants for attack vector protection, add rate limiter using tokens per IP address, tweak error messaging, cache NanoPow library in puppeteer handle, split work calls by action for puppeteer evaluation, tweak puppeteer browser launch flags, and explicitly listen on localhost.
package.json
src/bin/cli.ts
src/bin/nano-pow.sh
src/bin/server.ts
src/lib/gpu/compute.wgsl
src/lib/gpu/index.ts
test/script.sh