Skip to content

Conversation

@dermetfan
Copy link
Collaborator

@dermetfan dermetfan commented Nov 10, 2025

Currently, when a new challenge is found, mining for the current one is stopped.
This is becoming a problem for lower hash rate miners as difficulty increases, since they might not be able to solve a challenge within one hour, so before a new one becomes available, and hence solving is always canceled before a solution could be found.

With this PR, the newest available challenge is started only after the previous one is solved.


To simplify the code, this also handles donation before starting a mining cycle. There is no point in delaying donation until after a solution was found — the API supports donation as long as the addresses are registered and the documentation even includes an example reply for that case.

@dermetfan dermetfan added the enhancement New feature or request label Nov 10, 2025
@dermetfan dermetfan force-pushed the fix-challenge-cancellation branch from 642fea9 to c31109b Compare November 10, 2025 20:16
Handle donation before mining (simplifies code)
@dermetfan dermetfan force-pushed the fix-challenge-cancellation branch from c31109b to 041b0c0 Compare November 22, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants