Bitcoin Forum
July 24, 2017, 07:05:13 PM *
News: BIP91 seems stable: there's probably only slightly increased risk of confirmations disappearing. You should still prepare for Aug 1.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: "Hello World" Pooled Mining  (Read 1068 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)
1500923113
Hero Member
*
Offline Offline

Posts: 1500923113

View Profile Personal Message (Offline)

Ignore
1500923113
Reply with quote  #2

1500923113
Report to moderator
1500923113
Hero Member
*
Offline Offline

Posts: 1500923113

View Profile Personal Message (Offline)

Ignore
1500923113
Reply with quote  #2

1500923113
Report to moderator
1500923113
Hero Member
*
Offline Offline

Posts: 1500923113

View Profile Personal Message (Offline)

Ignore
1500923113
Reply with quote  #2

1500923113
Report to moderator
Decentralized search
Search for products or services and get paid for it
pre-sale Token CAT
25 July 50% discount
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1500923113
Hero Member
*
Offline Offline

Posts: 1500923113

View Profile Personal Message (Offline)

Ignore
1500923113
Reply with quote  #2

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

Activity: 406



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.

T.I.E.R.I.O.N




░░░░░░░░░░░░░░░░░░▄▄▄▄█████████████████████████████▄▄▄▄░░░░░░░░░░░░░░░░░░
░░░░░░░▄▄▄▄███████████████████████████████████████████████████▄▄▄▄░░░░░░░
▄▄█████████████████████████████████████████████████████████████████████▄▄
█████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████████████
▐███████████████████████████████████████████████████████████████████████▌
░▐████████████▀▀▀▀▀▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▀▀▀▀▀▀▀████████████▌░
░▐█████▀▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▀▀▀█████▌░
░░████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░████░░
░░▐██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██▌░░
░░▐█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█▌░░



███████████████████████████████████
███████████████████████████████████
███████████████████████████████████
███████████████████████████████████
░█████████████████████████████████░
░█████████████████████████████████░
░█████████████████████████████████░





███████████████
███████████████
███████████████
███████████████
███████████████
███████████████
███████████████
{{{{{
/
}}}}}
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: 560



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!