mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Merge pull request #475 from mempool/simon/difficulty-adjustment-calc-fix
Fixing incorrect difficulty adjustment call
This commit is contained in:
commit
24b7acdc60
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ export class DashboardComponent implements OnInit {
|
|||
const diff = now - DATime;
|
||||
const blocksInEpoch = block.height % 2016;
|
||||
const estimatedBlocks = Math.round(diff / 60 / 10);
|
||||
const difficultyChange = (blocksInEpoch - (diff / 60 / 10)) / blocksInEpoch * 100;
|
||||
const difficultyChange = (600 / (diff / blocksInEpoch ) -1) * 100;
|
||||
|
||||
let base = 0;
|
||||
let green = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue