-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport BIP147 (nulldummy enforcement) #1885
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
@@ -165,6 +165,13 @@ class CMainParams : public CChainParams { | |||
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0001].nWindowSize = 4032; | |||
consensus.vDeployments[Consensus::DEPLOYMENT_DIP0001].nThreshold = 3226; // 80% of 4032 | |||
|
|||
// Deployment of BIP147 | |||
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].bit = 2; | |||
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].nStartTime = 1519952400; // Feb 30th, 2018 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feb 30th? ;-) Think this comment should be March 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feb 30 is perfectly fine, it's just going to be a veeeeery long winter ☃️
:D
// Deployment of BIP147 | ||
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].bit = 2; | ||
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].nStartTime = 1519952400; // Feb 30th, 2018 | ||
consensus.vDeployments[Consensus::DEPLOYMENT_BIP147].nTimeout = 1551488400; // Feb 30th, 2019 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto here - Feb 30th -> Mar 2nd
This PR backports BIP147 from Bitcoin and adds Dash specific BIP9 deployment code.
I was not sure about the parameters for the BIP9 soft fork logic, review and suggestions appreciated.
Bitcoin reused the SegWit soft fork to activate BIP147, so it was easier for them deploy this new enforcement. As we don't have SegWit deployment code, we have to introduce our own deployment.
If anything else comes up before the next release which also requires a soft fork, I'd suggest to rename the deployment to a more generic one and put it into it as well.