gang_protoSenior Member
Posts: 2 · Reputation: 1725
#1Sep 14, 2021, 09:33 PM
Trying to set up a mining pool with Stratum 2 in Rust. I’m looking into how to calculate miners' hashrate based on their submitted shares. Did a little test, and it seems like this method works really well:
1. Grab the shares from the miner over 10 minutes.
2. Calculate the difficulty with share_diff = max_target / hash for each share.
3. Find the share at the (1 1/e) percentile, which is about the 63rd percentile for difficulty.
Anyone else tried this?