Merge pull request #2329 from mempool/nymkappa/bugfix/revert-2300

Reverted wrong fix in 2300
This commit is contained in:
wiz 2022-08-19 17:46:49 +09:00 committed by GitHub
commit 0dc950ab95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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