Merge pull request #2300 from slaninas/master

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

No files matched your search

+2 -2
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,