I am working on an fpga mining device just for fun. I realized that there is a getblocktemplate function which replaces the getwork Json-rpc call. So do I need to switch over to it and change all the code or can I continue using it . Will getwork be removed from bitcoin later or will it still be supported?
Asked
Active
Viewed 1,084 times
1 Answers
4
The advantage of getblocktemplate
is that work units from it last longer, because you can change the extraNonce field. That's nice if you're writing an fpga miner, because it saves bandwidth.
getwork
will probably never go away. It's useful and not very hard to maintain. Note that that's a personal opinion; I'm not one of the Bitcoin developers.
Edit: getwork
has been removed in v0.10.0, so you have to use getblocktemplate
.

Nick ODell
- 29,396
- 11
- 72
- 130
it simple wraps back
If you check the same nonce again, you'll get the same result. If you didn't get a block the first time, you won't get one the second time. Bandwidth savings only really matters in pooled mining. – Nick ODell Jun 04 '13 at 06:19