]> zoso.dev Git - nano-pow.git/commit
Extract some basic shared code into utils file and bundle it. Simplify lib exports...
authorChris Duncan <chris@zoso.dev>
Tue, 6 May 2025 21:41:36 +0000 (14:41 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 6 May 2025 21:41:36 +0000 (14:41 -0700)
commit7381e1476808ef52ebf8e637afedce9778b6b558
tree49f65a9593e1fd9bc6e2162debd5452c5121e5af
parent5274ec2c0915e5233944e6b88096ff6bc372ad28
Extract some basic shared code into utils file and bundle it. Simplify lib exports. Introduce new typings for server config and PoW results. Clean up CLI and fix some minor issues. Limit Node heap to improve CLI and server performance. Refactor server to extract code into manageable helper functions, improve organization, and fix some minor issues. Restrict difficulty to maximum of network difficulty to mitigate DoS attacks. Merge shared code in work calls in GPU implementation and extract it into modular functions. Implement work queue to better manage inbound requests. Fix nonce check in compute shader. Fix test page benchmark results from not being sorted properly. Update server test script.
13 files changed:
esbuild.mjs
src/bin/cli.ts
src/bin/nano-pow.sh
src/bin/server.ts
src/lib/gl/index.ts
src/lib/gpu/compute.wgsl
src/lib/gpu/index.ts
src/main.ts
src/types.d.ts
src/utils/index.ts [new file with mode: 0644]
test/index.html
test/script.sh
tsconfig.json