mirror of
https://github.com/mempool/mempool.git
synced 2024-12-27 08:44:26 +01:00
Use 10 minutes avg block time for halving calculation
This commit is contained in:
parent
14a4be743a
commit
3e8a34f3fd
@ -63,10 +63,8 @@ export class DifficultyComponent implements OnInit {
|
||||
colorPreviousAdjustments = '#ffffff66';
|
||||
}
|
||||
|
||||
const timeAvgMins = da.timeAvg;
|
||||
const now = new Date().getTime() / 1000;
|
||||
const blocksUntilHalving = 210000 - (block.height % 210000);
|
||||
const timeUntilHalving = (blocksUntilHalving * timeAvgMins * 60 * 1000) + (now * 1000);
|
||||
const timeUntilHalving = new Date().getTime() + (blocksUntilHalving * 600000);
|
||||
|
||||
const data = {
|
||||
base: `${da.progressPercent.toFixed(2)}%`,
|
||||
|
Loading…
Reference in New Issue
Block a user