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