From d371930595706070f449497922824f524dbab8de Mon Sep 17 00:00:00 2001 From: Tim Flynn Date: Sat, 27 Aug 2016 19:25:46 -0400 Subject: [PATCH] Added nMinGivernanceQuorum chain parameter --- src/chainparams.cpp | 3 +++ src/consensus/params.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 5c98dc3b9b..506b8b1f39 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -84,6 +84,7 @@ public: consensus.nBudgetProposalEstablishingTime = 60*60*24; consensus.nSuperblockStartBlock = 543210; // TODO, the block at which 12.1 goes live. consensus.nSuperblockCycle = 576; // Superblocks can be issued daily + consensus.nMinGovernanceQuorum = 10; consensus.nMasternodeMinimumConfirmations = 15; consensus.nMajorityEnforceBlockUpgrade = 750; consensus.nMajorityRejectBlockOutdated = 950; @@ -203,6 +204,7 @@ public: consensus.nBudgetProposalEstablishingTime = 60*20; consensus.nSuperblockStartBlock = 54321; // TODO, the block at which 12.1 goes live. consensus.nSuperblockCycle = 24; // Superblocks can be issued hourly on testnet + consensus.nMinGovernanceQuorum = 1; consensus.nMasternodeMinimumConfirmations = 1; consensus.nMajorityEnforceBlockUpgrade = 51; consensus.nMajorityRejectBlockOutdated = 75; @@ -304,6 +306,7 @@ public: consensus.nBudgetProposalEstablishingTime = 60*20; consensus.nSuperblockStartBlock = 1500; consensus.nSuperblockCycle = 10; + consensus.nMinGovernanceQuorum = 1; consensus.nMasternodeMinimumConfirmations = 1; consensus.nMajorityEnforceBlockUpgrade = 750; consensus.nMajorityRejectBlockOutdated = 950; diff --git a/src/consensus/params.h b/src/consensus/params.h index 3dfac71eb3..8690e42238 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -48,6 +48,7 @@ struct Params { int nBudgetProposalEstablishingTime; // in seconds int nSuperblockStartBlock; int nSuperblockCycle; // in blocks + int nMinGovernanceQuorum; // Min absolute vote count to trigger an action int nMasternodeMinimumConfirmations; /** Used to check majorities for block version upgrade */ int nMajorityEnforceBlockUpgrade;