jlopp / statoshi

Bitcoin Core + StatsD integration
https://jlopp.github.io/statoshi/
MIT License
233 stars 26 forks source link

More hash estimates #45

Open fridokus opened 4 years ago

fridokus commented 4 years ago

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 commented 4 years ago

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

fridokus commented 3 years ago

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!