13
13
I'm trying to figure out how does simple Bitcoin mining algorithm works in plain simple c or c# or some pseudo language. I've found an example at http://pastebin.com/EXDsRbYH, but unfortunately It isn't clear what it does. I was unable to run it.
Suppose I have only one input: a Bitcoin wallet "abc..." which I would like to be used for the Bitcoins to be mined. I need simple to understand algorithm that will do the bitcoin mining on one machine with one thread on one cpu [I know it will take ages to complete :)]
Could you please explain why we need to stop the loop if it took more than 1 second? – Rasoul – 2013-12-27T15:20:45.467
@Rasoul The basic getwork requests (in bitcoind) time out after 1 second as far as I remember. This is why we have to stop the loop and get new work every second. – ThePiachu – 2013-12-28T07:49:09.220