decred / gominer

Go (golang) based GPU miner for Decred.
GNU General Public License v3.0
159 stars 77 forks source link

Perform initial getwork when solo mining. #224

Closed davecgh closed 9 months ago

davecgh commented 9 months ago

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.