Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: sippsnapp on November 09, 2012, 06:03:01 PM



Title: What is the correct algorithm to calculate worker & pool hashrate
Post by: sippsnapp on November 09, 2012, 06:03:01 PM
HI BTCtalk,
i urgently need to know how to calculate the worker and pool hashrate to display this data on my website.
The pool uses a PSQL database. Pool software is eloipool.


Title: Re: What is the correct algorithm to calculate worker & pool hashrate
Post by: deepceleron on November 10, 2012, 12:33:28 AM
Pools don't receive a report of miner hashrate, they get difficulty 1 share submissions and must extrapolate what the miner hashrate may be.

The average number of hashes required to find a difficulty one share is:

2**48 / 65535

so we estimate 4,295,032,833 hashes performed by a miner per share submitted.

Then lets estimate a miner's hashrate for the last 10 minutes (600 seconds):

S Shares/600 seconds * 4,295 MHash/share = S (4295/600) MHash/second = S * 7.158388 Mhash/s,

so if a miner finds 60 shares in this 10 minutes, their estimated hashrate is 429.5 Mhash/s.




Title: Re: What is the correct algorithm to calculate worker & pool hashrate
Post by: J-Norm on November 26, 2012, 04:17:15 PM
Thanks for the math, that may come in handy for a project I am working on.