fix fPowAllowMinDifficultyBlocks to work on the testnet #141

Merged
kaykurokawa merged 1 commit from fix-testnet-pow into master 2018-05-21 22:16:25 +02:00
kaykurokawa commented 2018-05-21 21:52:59 +02:00 (Migrated from github.com)

chainparams parameter : fPowAllowMinDifficultyBlocks , which is set to true only on testnet, was designed to allow the difficulty to adjust to the minimum difficulty if a block was not found within 2x target block time.

This parameter was not working due to the fact that we'd never enter the if statement in line https://github.com/lbryio/lbrycrd/blob/master/src/pow.cpp#L23 since our params.DifficultyAdjustmentInterval() is 1

This has been fixed and should allow testnet to proceed when a large amount of hashrate drops off the network.

chainparams parameter : fPowAllowMinDifficultyBlocks , which is set to true only on testnet, was designed to allow the difficulty to adjust to the minimum difficulty if a block was not found within 2x target block time. This parameter was not working due to the fact that we'd never enter the if statement in line https://github.com/lbryio/lbrycrd/blob/master/src/pow.cpp#L23 since our params.DifficultyAdjustmentInterval() is 1 This has been fixed and should allow testnet to proceed when a large amount of hashrate drops off the network.
shyba (Migrated from github.com) approved these changes 2018-05-21 22:10:19 +02:00
lbrynaut (Migrated from github.com) reviewed 2018-05-21 22:16:04 +02:00
lbrynaut (Migrated from github.com) left a comment

lgtm

lgtm
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#141
No description provided.