Bitcoin Forum

Bitcoin => Mining support => Topic started by: startsts on June 28, 2017, 03:30:44 PM



Title: How to calculate worker hashrate at stratum
Post by: startsts on June 28, 2017, 03:30:44 PM
I use node-stratum-pool and it works well but I cannot calculate hashrate of the worker.
on worker's share this stratum gives me 2 diffs: stratum worker difficulty  and  actual difficulty of the share, what of them I should save to database to hashrate calculations?


Title: Re: How to calculate worker hashrate at stratum
Post by: unholycactus on June 30, 2017, 12:41:39 AM
None of the two you have listed, those are difficulty values and are unrelated to the hashrate.
Your hashrate should be visible from the pool's side, you'll get the most accurate value from them.
Otherwise, it depends on your miner.


Title: Re: How to calculate worker hashrate at stratum
Post by: startsts on June 30, 2017, 07:24:36 PM
None of the two you have listed, those are difficulty values and are unrelated to the hashrate.
Your hashrate should be visible from the pool's side, you'll get the most accurate value from them.
Otherwise, it depends on your miner.

actually MPOS (pool engine) calculates hashrate using stratum worker difficulty,  MPOS shows hashrate for last 5 minutes without normalization, so at pool dashboard hashrate always jumps up and down.   I try the same way but I do hashrate normalization (I calculate average at 60 minutes) and hashrate is 15% lower than my miner program shows,  is ok to lose 15% of hashrate on mining?