Reduce progress callback interval to every 10 rounds

This commit is contained in:
Your Name
2025-08-16 15:23:52 -04:00
parent 5dd8574319
commit 9c428082f1
4 changed files with 317683 additions and 3 deletions

View File

@@ -378,8 +378,8 @@ static void* miner_thread(void* arg) {
break; // Exit after reporting solution
}
// Progress reporting every 9999 attempts
if (ctx->progress_callback && attempts % 9999 == 0) {
// Progress reporting every 10 attempts
if (ctx->progress_callback && attempts % 10 == 0) {
ctx->progress_callback(ctx->thread_id, attempts, ctx->user_data);
}