Title: Help getting started with Mining and Pools Post by: Eli on June 10, 2011, 11:40:52 AM Hey all,
I've been lurking here for two weeks or so, and lately I started working on a project similar to http://bitp.it/ (http://bitp.it/), but I seem to miss some very basic ideas in bitcoin mining, and I would love some help if you could. My idea is to create a simple PHP work distribution app, I am able to connect to bitcoind and poll some data from it, but I don't understand how do I offload data to other clients. Like so: Code: <? My understanding of bitcoin mining goes something like this:
From what I've gathered by reading and re-reading the wiki, this is the process that takes place when mining for bitcoins. But the problem is that I completelly miss what it is that is being calculated and how it is being calculated. From playing around with bitp.it I understand that what it basically does is sending "clients" a starting point and an end point, and those are simply calculating the data, and if their hash is correct, they reply with the correct hash back to bitp.it and I'm rewarded for the effort. To my question: Can you please show a very basic function that does the mining from start to finish? I prefer it to be in PHP, but I'll understand other languages (I hope). Thanks a bunch! |