Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: pieppiep on February 03, 2012, 08:35:53 PM



Title: Protocol used for pool mining
Post by: pieppiep on February 03, 2012, 08:35:53 PM
I'm trying to find the protocol or api used by the different miners to get work from the different pools but I can't find it.
Can anyone point me in the right direction?
Soap? json? something else?


Title: Re: Protocol used for pool mining
Post by: Revalin on February 03, 2012, 09:16:00 PM
JSON-RPC.

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) (https://en.bitcoin.it/wiki/API_reference_(JSON-RPC))
https://en.bitcoin.it/wiki/Getwork


Title: Re: Protocol used for pool mining
Post by: stcupp on February 05, 2012, 02:11:06 AM
no i think hes talking about the pushpool daemon heres the source:

https://github.com/jgarzik/pushpool


Title: Re: Protocol used for pool mining
Post by: pieppiep on February 05, 2012, 10:54:58 AM
Thanks both :)

The thing I want to make is a miner.
First to test if I understand everything an unoptimized software miner, later a fpga miner.
I don't care if it is slow, it's just a hobby project at the moment.

With the links Revalin gave I found a C# implementation called bitnet (http://sourceforge.net/projects/bitnet/).
With only a few lines of code I succeeded to get some work to do and I fully understand the data the function returns so the next step is do some hashing with the sha256 function I already made earlier.