Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform initial getwork when solo mining. #224

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Oct 12, 2023

This ensure work is immediately available when solo mining by making an initial call to getwork during the initial setup of the miner.

It entails refactoring the work preparation logic from the OnWork handler into a separate function that is called with the result of the initial getwork call as well as all future OnWork notifications.

This ensure work is immediately available when solo mining by making an
initial call to getwork during the initial setup of the miner.

It entails refactoring the work preparation logic from the OnWork
handler into a separate function that is called with the result of the
initial getwork call as well as all future OnWork notifications.
@davecgh davecgh merged commit c504f85 into decred:master Oct 12, 2023
2 checks passed
@davecgh davecgh deleted the initial_solo_getwork branch October 12, 2023 18:56
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