12-hour difficulty adjustment window #451

Merged
wowario merged 1 commits from wowario/wownero:diff-v6 into dev 1 year ago
wowario commented 1 year ago
Owner

After v20 HF, difficulty adjustment algorithm looks at 144 prior blocks (~12 hours), starting from current height minus 3 blocks (~15 minutes).

Of the 144 blocks, the 12 highest and 12 lowest block times are dropped from the calculation and the remaining 120 blocks are used to get the average block time.

The average block time is then used to adjust the difficulty level to target 5 minute blocks. If a large miner/pool jumps on the network, it will take 15 blocks (~1 hours and 15 minutes) for the algo to react, with a gradual difficulty adjustment within 135 blocks (~11 hours and 15 minutes).

V19 has a difficulty adjustment window of 720 blocks (2 days and 12 hours). If we are going to bring back pool mining in v20, we need a faster adjustment.

After v20 HF, difficulty adjustment algorithm looks at 144 prior blocks (~12 hours), starting from current height minus 3 blocks (~15 minutes). Of the 144 blocks, the 12 highest and 12 lowest block times are dropped from the calculation and the remaining 120 blocks are used to get the average block time. The average block time is then used to adjust the difficulty level to target 5 minute blocks. If a large miner/pool jumps on the network, it will take 15 blocks (~1 hours and 15 minutes) for the algo to react, with a gradual difficulty adjustment within 135 blocks (~11 hours and 15 minutes). V19 has a difficulty adjustment window of 720 blocks (2 days and 12 hours). If we are going to bring back pool mining in v20, we need a faster adjustment.
wowario added 1 commit 1 year ago
wowario merged commit 7c47b97984 into dev 1 year ago
The pull request has been merged as 7c47b97984.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#451
Loading…
There is no content yet.