Can a miner's hashrate be derived from shares submitted at a given difficulty?

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

Posted 2013-09-18T22:32:13.773

Reputation: 19

Question was closed 2013-11-06T16:56:12.030

Answers

2

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

thus:

megahash_per_second = shares_per_second * share_difficulty * 4295.032833

Pieter Wuille

Posted 2013-09-18T22:32:13.773

Reputation: 54 032

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 2013-09-18T23:24:45.303