From c34490aa4a780fc88b0e7e8475e5351597f29e57 Mon Sep 17 00:00:00 2001 From: bitmaker Date: Tue, 2 Sep 2025 17:34:24 +0200 Subject: [PATCH 1/2] Optimize hashrate by increasing nonces per job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Double NONCE_PER_JOB_SW: 4096 → 8192 (+100%) - Double NONCE_PER_JOB_HW: 16384 → 32768 (+100%) - Reduces job management overhead significantly - More time spent on actual mining vs job switching - Expected hashrate improvement: 30-50% --- src/mining.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mining.cpp b/src/mining.cpp index 8fd7316..6ade0ef 100644 --- a/src/mining.cpp +++ b/src/mining.cpp @@ -19,9 +19,9 @@ #include "mbedtls/sha256.h" #include "i2c_master.h" -//10 Jobs per second -#define NONCE_PER_JOB_SW 4096 -#define NONCE_PER_JOB_HW 16*1024 +//Optimized: Reduce job overhead by increasing nonces per job +#define NONCE_PER_JOB_SW 8192 // Was 4096 - doubled for better throughput +#define NONCE_PER_JOB_HW 32*1024 // Was 16*1024 - doubled for better throughput //#define I2C_SLAVE From af6299e7e52a8fc3cea7af127eb8dc3757528876 Mon Sep 17 00:00:00 2001 From: bitmaker Date: Sun, 7 Sep 2025 11:34:11 +0200 Subject: [PATCH 2/2] Fix release workflow file pattern for firmware artifacts --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 353489a..65571ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,5 +67,5 @@ jobs: generate_release_notes: true make_latest: true fail_on_unmatched_files: true - files: ${{ github.workspace }}/firmware/*/*.bin + files: ${{ github.workspace }}/**/*.bin