Bitcoin Forum
December 10, 2016, 07:02:11 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: "Hello World" Pooled Mining  (Read 1010 times)
metasyntactic
Newbie
*
Offline Offline

Activity: 2


View Profile
April 27, 2011, 05:17:57 PM
 #1

I have access to about 20 computers with GPUs in my office so I plan to use them out of hours as my personal pooled mining system. e.g. Modified DiabloMiner running on each of the computers and communicating with some central server which gives out and receives work.

Idea would be to simply:
(1) Run the bitcoin binary on a computer with -server argument
(2) Server communicates with bitcoin over JSON-RPC (getwork)
(3) Distribute work to computers (implement protocol compatible with Diablominer)
(4) Server receives work from miners
(5) If block found send it to bitcoin binary to 'claim' any found block.

Two questions:
(1) How do I claim a found block? (i.e. in step 5)
(2) What is the best way of distributing work?
...or alternatively does any simple code for this exist e.g. source code for slush's pool?

(I'm a newbie so apologies if this is covered already but I couldn't find it in a simple example of pooled miner and puddinpop's code seems overkill since I don't won't try and scam myself by sending bad data)
1481396531
Hero Member
*
Offline Offline

Posts: 1481396531

View Profile Personal Message (Offline)

Ignore
1481396531
Reply with quote  #2

1481396531
Report to moderator
1481396531
Hero Member
*
Offline Offline

Posts: 1481396531

View Profile Personal Message (Offline)

Ignore
1481396531
Reply with quote  #2

1481396531
Report to moderator
1481396531
Hero Member
*
Offline Offline

Posts: 1481396531

View Profile Personal Message (Offline)

Ignore
1481396531
Reply with quote  #2

1481396531
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481396531
Hero Member
*
Offline Offline

Posts: 1481396531

View Profile Personal Message (Offline)

Ignore
1481396531
Reply with quote  #2

1481396531
Report to moderator
Garrett Burgwardt
Sr. Member
****
Offline Offline

Activity: 350



View Profile
April 27, 2011, 05:23:13 PM
 #2

In this case, just setup one computer with the client, set it to allow connections from any ip (or a range) rpcallowip=192.168.1.*, and point all your miners at that.
FatherMcGruder
Sr. Member
****
Offline Offline

Activity: 322



View Profile WWW
April 27, 2011, 05:34:12 PM
 #3

Make sure your computers' GPUs support mining too.

Use my Trade Hill referral code: TH-R11519

Check out bitcoinity.org and Ripple.

Shameless display of my bitcoin address:
1Hio4bqPUZnhr2SWi4WgsnVU1ph3EkusvH
metasyntactic
Newbie
*
Offline Offline

Activity: 2


View Profile
April 27, 2011, 05:48:35 PM
 #4

In this case, just setup one computer with the client, set it to allow connections from any ip (or a range) rpcallowip=192.168.1.*, and point all your miners at that.

Smiley Sounds nice and simple  

so just to clarify, everytime I call Getwork I get a different formatted data hash to work on? Then if the miner finds a block it sends it back with getwork[data] to claim it?
fpgaminer
Hero Member
*****
Offline Offline

Activity: 546



View Profile WWW
April 28, 2011, 12:12:11 AM
 #5

Quote
so just to clarify, everytime I call Getwork I get a different formatted data hash to work on? Then if the miner finds a block it sends it back with getwork[data] to claim it?
Yup. The miner sends back data with a valid nonce injected into the data. Bitcoin/bitcoind will check to make sure it's correct, and if so it adds it to the block chain and thus receives its shiny new 50 BTC.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!