statoshi icon indicating copy to clipboard operation
statoshi copied to clipboard

More hash estimates

Open fridokus opened this issue 5 years ago • 2 comments

I love statoshi.info.

I'm viewing the mining page a lot to track the hashrate after the halving.

I'm wondering if it's possible to add more panels with estimations of the hashrate using more blocks in the calculation. Currently we can only see an estimation based on 120 blocks (20 hours). It would be nice to also be able to see for example 50 and 100 hours.

I would create a pull request for this myself but I'm too bad at cpp to be able to figure out how. I see that we need to change request in this line to not use the default 120 in getnetworkhashps but instead 300 and 600.

statsClient.gauge("network.exahashesPerSecond", getnetworkhashps(request).get_real() / 1e18);

BR, Fridokus

fridokus avatar May 19 '20 13:05 fridokus

If anyone has an idea on how to modify this request parameter to add an arg I could try to implement it :)

fridokus avatar May 19 '20 13:05 fridokus

120 blocks means that we on average get

>>> 1 / math.sqrt(120) 0.09128709291752768

9% estimation error! We need an estimate that uses more blocks!

fridokus avatar Nov 03 '20 14:11 fridokus