diff options
author | jtimon <jtimon@monetize.io> | 2014-03-22 19:52:26 +0100 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-06-04 13:29:36 +0200 |
commit | d754f34e8d470d5d89e2bc31ff1ab60ae5889266 (patch) | |
tree | facbfeec67bdcc6ac520f108216efe2fd3d84815 /src/chainparams.h | |
parent | 8d26721498eb608b1ee5fd4d10083739a77b5905 (diff) |
Move majority constants to chainparams
Diffstat (limited to 'src/chainparams.h')
-rw-r--r-- | src/chainparams.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index f0c90bf50f..f400907d73 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -57,6 +57,11 @@ public: int GetDefaultPort() const { return nDefaultPort; } const uint256& ProofOfWorkLimit() const { return bnProofOfWorkLimit; } int SubsidyHalvingInterval() const { return nSubsidyHalvingInterval; } + /* Used to check majorities for block version upgrade */ + int EnforceBlockUpgradeMajority() const { return nEnforceBlockUpgradeMajority; } + int RejectBlockOutdatedMajority() const { return nRejectBlockOutdatedMajority; } + int ToCheckBlockUpgradeMajority() const { return nToCheckBlockUpgradeMajority; } + /* Used if GenerateBitcoins is called with a negative number of threads */ int DefaultMinerThreads() const { return nMinerThreads; } virtual const CBlock& GenesisBlock() const = 0; @@ -85,6 +90,9 @@ protected: int nRPCPort; uint256 bnProofOfWorkLimit; int nSubsidyHalvingInterval; + int nEnforceBlockUpgradeMajority; + int nRejectBlockOutdatedMajority; + int nToCheckBlockUpgradeMajority; string strDataDir; int nMinerThreads; vector<CDNSSeedData> vSeeds; |