bitcoinz-support / btczbot

BitcoinZ Community Chatbot
1 stars 3 forks source link

Make earnings smarter #6

Closed egyptianbman closed 6 years ago

egyptianbman commented 6 years ago

This commit changes the way earnings are calculated. Initially we calculated based on the current net hashrate. Now, earnings utilizes the difficulty over the last eight hours for a somewhat more stable calculation.

I wanted to do 24 hours but couldn't quickly figure out how to get that out of the insight api.