Improve difficulty adjustment algorithm
References:
- https://github.com/zcash/zcash/issues/147
- https://github.com/zcash/zcash/issues/147#issuecomment-221534222
Excellent document about DigiShield https://www.reddit.com/r/Digibyte/comments/213t7b/what_is_digishield_how_it_works_to_retarget/
Quite good explanation about attack vector to KGW algorithm https://github.com/zcash/zcash/issues/147#issuecomment-211013306
Another good thread to refer https://bitco.in/forum/threads/on-replacing-difficulty-algorithm-in-context-of-hard-forks.984/
simulate bitcoin cash EDA https://www.yours.org/content/simulating-the-bitcoin-cash-eda-e441804b863f
A Description about MIDAS