Post
Topic
Board Pools
Re: [320GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
by
twmz
on 10/03/2012, 01:37:43 UTC
A couple p2pool.info updates...

Donations/Subsidies

I was thinking it would be cool if p2pool.info listed how much has been donated as subsidies.  Maybe that could be added into the luck calculation, too.

I updated p2pool.info to include a list of donations/subsidy payments.  I decided not to include them in the luck calculation.

I detect these transactions by looking for any transaction that includes payments to 10 or more known p2pool miner addresses (I have a list of basically all the addresses that have ever submitted a share).  I think this is a pretty robust approach as long as there aren't any donations that go to less than 10 people.  If that ever happens and someone lets me know, I can manually add that transaction to the list.

JSON API

It may not have been obvious, but the way that p2pool.info actually works is that all of the things you see on the web page are rendered in your local browser with client-side, javascript code.  The web page gets all the data it uses via a series of ajax requests to retrieve JSON data from the p2pool.info web server.

On the chance that someone may find something interesting to do with the JSON data, I decided to CORS enable them.  So feel free to use this data to make awesome things.  Please to not make a zillion requests to my web server though, because while I can easily scale out to handle more load (yay, Cloud!), I don't want to have to do so just for the JSON API because it costs me money.  If these APIs get abused, I'll have to remove access to them.


The stats and blocks endpoints can also be used to retrieve deltas:


P.S.  If the response to any of these JSON APIs is not self explanatory, feel free to just ask.