Merge pull request #2300 from slaninas/master

Fix difficulty adjustment
This commit is contained in:
wiz
2022-08-19 05:46:14 +09:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -47,8 +47,8 @@ class DifficultyAdjustmentApi {
}
const timeAvg = timeAvgMins * 60 * 1000 ;
const remainingTime = (remainingBlocks * timeAvg) + (now * 1000);
const estimatedRetargetDate = remainingTime + now;
const remainingTime = remainingBlocks * timeAvg;
const estimatedRetargetDate = remainingTime + now * 1000;
return {
progressPercent,