0

Trying to generate useful stats about client activity in a pool. If a quantity of submitted (timestamped) shares is known, and the difficulty of each share is known, how can the client's aggregate hashrate be determined?

Ryan
  • 19
  • 1
  • 2

1 Answers1

2
hashes = shares * share_difficulty * 2**48 / 65535

thus:

megahash_per_second = shares_per_second * share_difficulty * 4295.032833
Pieter Wuille
  • 98,249
  • 9
  • 183
  • 287
  • Conceptually: Compute the expected number of hashes required to find each share that is actually found and sum them. Divide by the amount of time to get the hash rate. – David Schwartz Sep 18 '13 at 23:24