aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/params.h
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2018-01-08 19:39:10 +0000
committerRoss Nicoll <[email protected]>2018-09-19 21:09:16 +0100
commit7b81f4de0a006a6c01b88c79b6ab34a921eb86b5 (patch)
tree71f86cbdb71ef365ec893073d63f05ccfe1f8252 /src/consensus/params.h
parentCheck only the base block version (#1411) (diff)
downloaddiscoin-7b81f4de0a006a6c01b88c79b6ab34a921eb86b5.tar.xz
discoin-7b81f4de0a006a6c01b88c79b6ab34a921eb86b5.zip
Move COINBASE_MATURITY to the consensus parameters (#1426)
Diffstat (limited to 'src/consensus/params.h')
-rw-r--r--src/consensus/params.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index a3a61747d..98c744149 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -43,7 +43,6 @@ struct Params {
int nMajorityEnforceBlockUpgrade;
int nMajorityRejectBlockOutdated;
int nMajorityWindow;
- int nCoinbaseMaturity;
/** Block height and hash at which BIP34 becomes active */
int BIP34Height;
uint256 BIP34Hash;
@@ -59,6 +58,7 @@ struct Params {
uint32_t nRuleChangeActivationThreshold;
uint32_t nMinerConfirmationWindow;
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS];
+ uint32_t nCoinbaseMaturity;
/** Proof of work parameters */
uint256 powLimit;
bool fPowAllowMinDifficultyBlocks;
@@ -84,6 +84,7 @@ struct Params {
uint32_t nHeightEffective; // When these parameters come into use
struct Params *pLeft; // Left hand branch
struct Params *pRight; // Right hand branch
+ const Consensus::Params *GetConsensus(uint32_t nTargetHeight) const;
};
} // namespace Consensus