Author

Topic: What is the correct algorithm to calculate worker & pool hashrate (Read 1771 times)

newbie
Activity: 56
Merit: 0
Thanks for the math, that may come in handy for a project I am working on.
legendary
Activity: 1512
Merit: 1036
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.


sr. member
Activity: 322
Merit: 250
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.
Jump to: