This is an app aimed at assisting servers in monetizing client sessions by providing an API through which to use javascript to calculate bitcoin hashes.
By having multiple client sessions you can distribute the work across multiple clients.
If a site were popular enough it could be quite successful!
So, starting the server is easy.
Just clone the repo, cd
into it and use PHP's internal server.
php -S localhost:8000
Then open the demo at localhost:8000/index.html
Look inside of credentials.class.php
, adjust those variables for your local
instance of bitcoind.
If you're looking for an easy way to set up a bitcoind instance, and you know vagrant, you can try bitcoin-vagrant.
Just jump in and it will work beautifully!
begin_mining()
/*
RETURN VALUE
This function will perform a continuous, multi-worker series of function calls.
If we're not in test mode we call
*/
get_work(true);
long_poll();
Original Source being improved upon the original by derjanb