From e43a822e195308aa0533bf4280888c5845ed2ffa Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 6 May 2025 14:49:26 -0700 Subject: [PATCH] Patch version. --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 456d7ed..8d27efd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,46 @@ SPDX-FileCopyrightText: 2025 Chris Duncan SPDX-License-Identifier: GPL-3.0-or-later --> +## v4.1.6 + +### Notable Changes + +#### Maximum difficulty + +While the Nano specification does not define a hard limit on the difficulty that +can be requested from a `work_generate` call, values larger than the network +send threshold `fffffff800000000` can very easily keep system busy indefinitely. +This denial-of-service attack vector is now mitigated in NanoPow by restricting +`work_generate` to the send threshold as its maximum. + +### Other Changes + +Refactor server to extract code into manageable helper functions, improve +organization, and fix some minor issues. + +Merge shared code in GPU implementation work calls and extract it into modular +functions. + +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. + +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. + + + ## v4.1.5 ### Notable Changes diff --git a/package-lock.json b/package-lock.json index 7db0b83..ab3502a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nano-pow", - "version": "4.1.5", + "version": "4.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nano-pow", - "version": "4.1.5", + "version": "4.1.6", "license": "(GPL-3.0-or-later AND MIT)", "bin": { "nano-pow": "dist/bin/nano-pow.sh" diff --git a/package.json b/package.json index 7690d40..0545a11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nano-pow", - "version": "4.1.5", + "version": "4.1.6", "description": "Proof-of-work generation and validation with WebGPU/WebGL for Nano cryptocurrency.", "keywords": [ "nemo", -- 2.47.3