zawy12 / difficulty-algorithms

See the Issues for difficulty algorithms
MIT License
107 stars 25 forks source link

Warnings about modify difficulty algorithms #10

Closed zawy12 closed 6 years ago

zawy12 commented 6 years ago

Please do not use MTP as the most recent block or use any other filters or limits. MTP is the 2nd worst way to deal with bad timestamps.

If you are going to block out-of-sequence timestamps or disallow negative solvetimes, then read my "Handling Bad Timestamps" article to make the modification, otherwise you are potentially opening the coin to a catastrophic exploit. Do NOT simply say if solvetime < 1 then solvetime = 1 unless you have the other required code.