Skip to content

Add back getwork #33

@domob1812

Description

@domob1812

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions