Switching to digishield difficulty retargeting algorithm #5

Closed
kaykurokawa wants to merge 1 commit from real into real
kaykurokawa commented 2016-06-19 20:18:12 +02:00 (Migrated from github.com)

Switching to digishield difficulty retargeting algorithm. Algorithm is based off of dogecoin implementation, only difference is minimum timespan factor was changed from 4 to 8. In summary the algorithm will retarget every block (2.5 min) , and difficulty will either increase by maximum of 13% or decrease by 33%

This breaks the unit test miner_tests.cpp which contains pre generated nonces to meet the bitcoin difficulty retargeting algorithm. Need to generate new nonces so the test will pass.

Switching to digishield difficulty retargeting algorithm. Algorithm is based off of dogecoin implementation, only difference is minimum timespan factor was changed from 4 to 8. In summary the algorithm will retarget every block (2.5 min) , and difficulty will either increase by maximum of 13% or decrease by 33% This breaks the unit test miner_tests.cpp which contains pre generated nonces to meet the bitcoin difficulty retargeting algorithm. Need to generate new nonces so the test will pass.
kaykurokawa commented 2016-06-20 22:13:20 +02:00 (Migrated from github.com)

fixed miner_tests.cpp with new nonces

fixed miner_tests.cpp with new nonces

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#5
No description provided.