Using 'e' for Hashrate Calculation in Mining Pools

1 reply 26 views
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?
6 Reply Quote Share
wizard_2016Full Member
Posts: 46 · Reputation: 575
#2Sep 14, 2021, 10:02 PM
Not sure about this method honestly. I mean, figuring out the 'difficulty' of a hash isn't really a solid approach for determining hashrate. You’re counting total hashes over ten minutes and dividing by 600 seconds, right? So the hashrate is likely coming from that part. The calculations involving 'e' seem to just balance out... Makes me wonder if it's worth the hassle. Idk, maybe I’m missing something?
3 Reply Quote Share

Related topics