Bitcoin ABC  0.26.2
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
256-bit opaque blob.
Definition: uint256.h:127
DeploymentPos
Definition: params.h:16
@ DEPLOYMENT_TESTDUMMY
Definition: params.h:17
@ MAX_VERSION_BITS_DEPLOYMENTS
Definition: params.h:20
A BlockHash is a unqiue identifier for a block.
Definition: blockhash.h:13
Struct for each individual consensus rule change using BIP9.
Definition: params.h:26
int bit
Bit position to select the particular bit in nVersion.
Definition: params.h:28
static constexpr int64_t ALWAYS_ACTIVE
Special value for nStartTime indicating that the deployment is always active.
Definition: params.h:53
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
Definition: params.h:41
uint32_t nActivationThreshold
Minimum number of blocks within an activation window that must signal to activate the deployement.
Definition: params.h:34
static constexpr int64_t NO_TIMEOUT
Constant for nTimeout very far in the future.
Definition: params.h:44
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
Definition: params.h:39
Parameters that influence chain consensus.
Definition: params.h:59
BlockHash defaultAssumeValid
Definition: params.h:114
int magneticAnomalyHeight
Block height at which the magnetic anomaly activation becomes active.
Definition: params.h:78
int BIP65Height
Block height at which BIP65 becomes active.
Definition: params.h:68
int CSVHeight
Block height at which CSV (BIP68, BIP112 and BIP113) becomes active.
Definition: params.h:72
int gravitonHeight
Block height at which the graviton activation becomes active.
Definition: params.h:80
int axionHeight
Block height at which the axion activation becomes active.
Definition: params.h:84
uint32_t nMinerConfirmationWindow
Definition: params.h:97
int wellingtonActivationTime
Unix time used for MTP activation of 15 May 2023 12:00:00 UTC upgrade.
Definition: params.h:90
int gluonHeight
Block height at which the gluon activation becomes active.
Definition: params.h:86
int64_t DifficultyAdjustmentInterval() const
Definition: params.h:110
BlockHash BIP34Hash
Definition: params.h:66
int BIP16Height
Block height at which BIP16 becomes active.
Definition: params.h:63
int phononHeight
Block height at which the phonon activation becomes active.
Definition: params.h:82
int64_t nDAAHalfLife
Definition: params.h:107
int jeffersonActivationTime
Unix time used for MTP activation of 15 Nov 2022 12:00:00 UTC upgrade.
Definition: params.h:88
int BIP34Height
Block height and hash at which BIP34 becomes active.
Definition: params.h:65
int nSubsidyHalvingInterval
Definition: params.h:61
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
Definition: params.h:98
int MinBIP9WarningHeight
Don't warn about unknown BIP 9 activations below this height.
Definition: params.h:96
bool fPowNoRetargeting
Definition: params.h:106
uint256 nMinimumChainWork
Definition: params.h:113
int daaHeight
Block height at which the new DAA becomes active.
Definition: params.h:76
int64_t nPowTargetTimespan
Definition: params.h:109
BlockHash hashGenesisBlock
Definition: params.h:60
int BIP66Height
Block height at which BIP66 becomes active.
Definition: params.h:70
uint256 powLimit
Proof of work parameters.
Definition: params.h:104
int uahfHeight
Block height at which UAHF kicks in.
Definition: params.h:74
bool enableMinerFund
Enable or disable the miner fund by default.
Definition: params.h:101
int64_t nPowTargetSpacing
Definition: params.h:108
bool fPowAllowMinDifficultyBlocks
Definition: params.h:105