Bitcoin ABC  0.24.7
P2P Digital Currency
params.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_CONSENSUS_PARAMS_H
7 #define BITCOIN_CONSENSUS_PARAMS_H
8 
9 #include <primitives/blockhash.h>
10 #include <uint256.h>
11 
12 #include <limits>
13 
14 namespace Consensus {
15 
18  // NOTE: Also add new deployments to VersionBitsDeploymentInfo in
19  // versionbitsinfo.cpp
21 };
22 
28  int bit;
34  uint32_t nActivationThreshold = 1512;
39  int64_t nStartTime = 0;
41  int64_t nTimeout = NO_TIMEOUT;
42 
44  static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t>::max();
45 
53  static constexpr int64_t ALWAYS_ACTIVE = -1;
54 };
55 
59 struct Params {
72  int CSVHeight;
76  int daaHeight;
91 
99 
102 
107  int64_t nDAAHalfLife;
112  }
115 };
116 } // namespace Consensus
117 
118 #endif // BITCOIN_CONSENSUS_PARAMS_H
Consensus::Params::gluonActivationTime
int gluonActivationTime
Unix time used for MTP activation of 15 May 2022 12:00:00 UTC upgrade.
Definition: params.h:90
Consensus::BIP9Deployment::nStartTime
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
Definition: params.h:39
Consensus::BIP9Deployment::bit
int bit
Bit position to select the particular bit in nVersion.
Definition: params.h:28
Consensus::Params::nSubsidyHalvingInterval
int nSubsidyHalvingInterval
Definition: params.h:61
Consensus::Params::BIP16Height
int BIP16Height
Block height at which BIP16 becomes active.
Definition: params.h:63
Consensus::DeploymentPos
DeploymentPos
Definition: params.h:16
uint256.h
Consensus::Params::nDAAHalfLife
int64_t nDAAHalfLife
Definition: params.h:107
Consensus::BIP9Deployment::nTimeout
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
Definition: params.h:41
Consensus::Params::magneticAnomalyHeight
int magneticAnomalyHeight
Block height at which the magnetic anomaly activation becomes active.
Definition: params.h:78
Consensus::DEPLOYMENT_TESTDUMMY
@ DEPLOYMENT_TESTDUMMY
Definition: params.h:17
Consensus::BIP9Deployment::NO_TIMEOUT
static constexpr int64_t NO_TIMEOUT
Constant for nTimeout very far in the future.
Definition: params.h:44
blockhash.h
Consensus::MAX_VERSION_BITS_DEPLOYMENTS
@ MAX_VERSION_BITS_DEPLOYMENTS
Definition: params.h:20
Consensus::Params::nMinerConfirmationWindow
uint32_t nMinerConfirmationWindow
Definition: params.h:97
Consensus::BIP9Deployment
Struct for each individual consensus rule change using BIP9.
Definition: params.h:26
Consensus::Params::nPowTargetSpacing
int64_t nPowTargetSpacing
Definition: params.h:108
Consensus::Params
Parameters that influence chain consensus.
Definition: params.h:59
Consensus::Params::tachyonActivationTime
int tachyonActivationTime
Unix time used for MTP activation of 15 May 2021 12:00:00 UTC upgrade.
Definition: params.h:86
Consensus::Params::BIP34Hash
BlockHash BIP34Hash
Definition: params.h:66
Consensus
Definition: blockdb.h:10
Consensus::Params::fPowAllowMinDifficultyBlocks
bool fPowAllowMinDifficultyBlocks
Definition: params.h:105
Consensus::Params::hashGenesisBlock
BlockHash hashGenesisBlock
Definition: params.h:60
uint256
256-bit opaque blob.
Definition: uint256.h:127
Consensus::Params::powLimit
uint256 powLimit
Proof of work parameters.
Definition: params.h:104
BlockHash
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
Consensus::Params::fPowNoRetargeting
bool fPowNoRetargeting
Definition: params.h:106
Consensus::Params::nPowTargetTimespan
int64_t nPowTargetTimespan
Definition: params.h:109
Consensus::Params::uahfHeight
int uahfHeight
Block height at which UAHF kicks in.
Definition: params.h:74
Consensus::Params::BIP34Height
int BIP34Height
Block height and hash at which BIP34 becomes active.
Definition: params.h:65
Consensus::Params::daaHeight
int daaHeight
Block height at which the new DAA becomes active.
Definition: params.h:76
Consensus::Params::BIP66Height
int BIP66Height
Block height at which BIP66 becomes active.
Definition: params.h:70
Consensus::Params::vDeployments
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
Definition: params.h:98
Consensus::Params::selectronActivationTime
int selectronActivationTime
Unix time used for MTP activation of 15 Nov 2021 12:00:00 UTC upgrade.
Definition: params.h:88
Consensus::Params::gravitonHeight
int gravitonHeight
Block height at which the graviton activation becomes active.
Definition: params.h:80
Consensus::BIP9Deployment::nActivationThreshold
uint32_t nActivationThreshold
Minimum number of blocks within an activation window that must signal to activate the deployement.
Definition: params.h:34
Consensus::Params::BIP65Height
int BIP65Height
Block height at which BIP65 becomes active.
Definition: params.h:68
Consensus::Params::nMinimumChainWork
uint256 nMinimumChainWork
Definition: params.h:113
Consensus::Params::CSVHeight
int CSVHeight
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active.
Definition: params.h:72
Consensus::Params::DifficultyAdjustmentInterval
int64_t DifficultyAdjustmentInterval() const
Definition: params.h:110
Consensus::Params::enableMinerFund
bool enableMinerFund
Enable or disable the miner fund by default.
Definition: params.h:101
Consensus::Params::defaultAssumeValid
BlockHash defaultAssumeValid
Definition: params.h:114
Consensus::Params::axionActivationTime
int axionActivationTime
Unix time used for MTP activation of 15 Nov 2020 12:00:00 UTC upgrade.
Definition: params.h:84
Consensus::Params::MinBIP9WarningHeight
int MinBIP9WarningHeight
Don't warn about unknown BIP 9 activations below this height.
Definition: params.h:96
Consensus::Params::phononHeight
int phononHeight
Block height at which the phonon activation becomes active.
Definition: params.h:82
Consensus::BIP9Deployment::ALWAYS_ACTIVE
static constexpr int64_t ALWAYS_ACTIVE
Special value for nStartTime indicating that the deployment is always active.
Definition: params.h:53