Fix halving calculation

This commit is contained in:
nymkappa
2022-03-05 19:05:19 +01:00
parent d45f3c32cf
commit 84ef424752
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ export class DifficultyComponent implements OnInit {
colorPreviousAdjustments = '#ffffff66';
}
const blocksUntilHalving = block.height % 210000;
const blocksUntilHalving = 210000 - (block.height % 210000);
const timeUntilHalving = (blocksUntilHalving * timeAvgMins * 60 * 1000) + (now * 1000);
return {