Skip to content
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

Merged
merged 7 commits into from
Jan 31, 2018

Conversation

codablock
Copy link

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.

@UdjinM6 UdjinM6 added this to the 12.3 milestone Jan 31, 2018
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit 5046378 into dashpay:develop Jan 31, 2018
@codablock codablock deleted the pr_bip147_nulldummy branch January 31, 2018 11:07
@thephez thephez mentioned this pull request Feb 5, 2018
3 tasks
@@ -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
Copy link
Collaborator

@thephez thephez Feb 13, 2018

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

Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants