You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Litecoin: This fixes an issue where a 51% attack can change difficulty at will.
188
188
// Go back the full period unless it's the first retarget after genesis. Code courtesy of Art Forz
189
189
int blockstogoback = params.DifficultyAdjustmentInterval()-1;
190
-
if ((pindexLast->nHeight+1) != params.DifficultyAdjustmentInterval())
190
+
if ((pindexLast->nHeight+1) != params.DifficultyAdjustmentInterval())// (pindexLast->nHeight+1) always > params.DifficultyAdjustmentInterval() So this is unnecessary
0 commit comments