cryptotechguru / Cryptonomicon

Nomicon game space for Cryptotech projects
https://cryptotechguru.github.io/Cryptonomicon/
4 stars 6 forks source link

Improve difficulty adjustment algorithm #44

Open macterra opened 5 years ago

macterra commented 5 years ago

Tesseract currently uses the Dark Gravity Wave difficulty adjustment algorithm, adapted from RavenCoin. It seems to do a decent job of adjusting the difficulty to changes in hashpower but it does display a fair amount of volatility when hashpower remains constant.

image

It is possible that replacing the algorithm with a discrete PID controller would improve the behavioral characteristics.

Flaxscrip commented 5 years ago

Applying a PID controller algorithm to mining difficulty might be a first in the crypto space. Are there small steps we could do to test the concept?

macterra commented 5 years ago

Yes, the first step would be to develop a block mining simulation that could be used to easily test different PID parameters. The effort is likely on the order of a couple days to program a barebones prototype in python.