diff --git a/backend/src/routes.ts b/backend/src/routes.ts index fd53f4765..11502c839 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -724,14 +724,16 @@ class Routes { const nextRetargetHeight = blockHeight + remainingBlocks; let difficultyChange = 0; - if (blocksInEpoch > 0) { - difficultyChange = (600 / (diff / blocksInEpoch ) - 1) * 100; - } - if (difficultyChange > 300) { - difficultyChange = 300; - } - if (difficultyChange < -75) { - difficultyChange = -75; + if (remainingBlocks < 1870) { + if (blocksInEpoch > 0) { + difficultyChange = (600 / (diff / blocksInEpoch ) - 1) * 100; + } + if (difficultyChange > 300) { + difficultyChange = 300; + } + if (difficultyChange < -75) { + difficultyChange = -75; + } } const timeAvgDiff = difficultyChange * 0.1; diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index 72d71b8ad..002f3c702 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -242,7 +242,7 @@