Merge pull request #2300 from slaninas/master
Fix difficulty adjustment
This commit is contained in:
commit
9fca8de52f
@ -47,8 +47,8 @@ class DifficultyAdjustmentApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const timeAvg = timeAvgMins * 60 * 1000 ;
|
const timeAvg = timeAvgMins * 60 * 1000 ;
|
||||||
const remainingTime = (remainingBlocks * timeAvg) + (now * 1000);
|
const remainingTime = remainingBlocks * timeAvg;
|
||||||
const estimatedRetargetDate = remainingTime + now;
|
const estimatedRetargetDate = remainingTime + now * 1000;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
progressPercent,
|
progressPercent,
|
||||||
|
3
contributors/junderw.txt
Normal file
3
contributors/junderw.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of August 19, 2022.
|
||||||
|
|
||||||
|
Signed: junderw
|
Loading…
x
Reference in New Issue
Block a user