Bitcoin Forum
December 14, 2024, 04:57:03 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the correct algorithm to calculate worker & pool hashrate  (Read 1772 times)
sippsnapp (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
November 09, 2012, 06:03:01 PM
 #1

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.

Πάντα ῥεῖ
Bitcoin + Altcoin node pool setup - pm
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
November 10, 2012, 12:33:28 AM
 #2

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.


J-Norm
Newbie
*
Offline Offline

Activity: 56
Merit: 0



View Profile
November 26, 2012, 04:17:15 PM
 #3

Thanks for the math, that may come in handy for a project I am working on.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!