Skip to content

fix: reset extranonce2 only if clean_jobs == true#1603

Open
blackmennewstyle wants to merge 7 commits intobitaxeorg:masterfrom
blackmennewstyle:master
Open

fix: reset extranonce2 only if clean_jobs == true#1603
blackmennewstyle wants to merge 7 commits intobitaxeorg:masterfrom
blackmennewstyle:master

Conversation

@blackmennewstyle
Copy link
Copy Markdown

This PR improves the extranonce2 reset.
It is only performed if clean_jobs == true.
The previous code was triggering a cascade of duplicate shares after a varDiff change:

@blackmennewstyle blackmennewstyle changed the title Reset extranonce2 only if clean_jobs == true fix: reset extranonce2 only if clean_jobs == true Mar 11, 2026
Comment thread main/tasks/create_jobs_task.c Outdated
This PR improves the extranonce2 reset.
It is only performed if clean_jobs == true.
The previous code was triggering a cascade of duplicate shares after a varDiff change:
- mining.set_difficulty
- mining.notify with clean_jobs is set to false
The behavior is described here: bitaxeorg#1587 (comment)
More explicit explanation for future code reviewers/contributors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants