-
Notifications
You must be signed in to change notification settings - Fork 60
Description
For our mining strategy (see https://github.com/chimaera/Specs/blob/master/mining.md), we should add back the getwork RPC method to the core daemon. This will allow existing mining infrastructure to work out-of-the-box with the custom PoW data format we plan to implement. This method call is also very similar in nature and implementation to createauxblock / submitauxblock, which we will add back as well.
We won't need the previously already deprecated hash1 and midstate fields, as they are no longer used by miners using getwork anyway. Also, we can split the RPC into createworkblock and submitworkblock similar to what was done with getauxblock to structure the code somewhat, and try to share common code with merge mining.
For reference, getwork was removed in upstream Bitcoin in bitcoin/bitcoin#4100.