alexdovzhanyn / elixium_core

A privacy-preserving decentralized application network
https://www.elixiumnetwork.org/
281 stars 37 forks source link

WWHM Difficulty Algorithm #66

Closed alexdovzhanyn closed 6 years ago

alexdovzhanyn commented 6 years ago

Solves #63, solves #61, and solves #59 .

This replaces our difficulty algorithm with WWHM. I've also moved most of the constants within the core to be in one spot for easy editing.

The algorithm adjusts difficulty properly and keeps us on track for an average 2 minute solvetime. I left this running for 48 hours and the results show that the implementation seems to be stable. Here's a chart showing the algorithm's performance:

screen shot 2018-11-13 at 7 31 17 pm