Bitcoin
params.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2018 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 <uint256.h>
10 #include <limits>
11 #include <map>
12 #include <string>
13 
14 namespace Consensus {
15 
17 {
19  DEPLOYMENT_CSV, // Deployment of BIP68, BIP112, and BIP113.
20  DEPLOYMENT_SEGWIT, // Deployment of BIP141, BIP143, and BIP147.
21  // NOTE: Also add new deployments to VersionBitsDeploymentInfo in versionbits.cpp
23 };
24 
30  int bit;
35 
37  static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t>::max();
38 
43  static constexpr int64_t ALWAYS_ACTIVE = -1;
44 };
45 
49 struct Params {
52  /* Block hash that is excepted from BIP16 enforcement */
78 };
79 } // namespace Consensus
80 
81 #endif // BITCOIN_CONSENSUS_PARAMS_H
uint256 defaultAssumeValid
Definition: params.h:77
bool fPowAllowMinDifficultyBlocks
Definition: params.h:71
uint256 hashGenesisBlock
Definition: params.h:50
int BIP65Height
Definition: params.h:58
int nSubsidyHalvingInterval
Definition: params.h:51
Definition: params.h:49
int bit
Definition: params.h:30
uint32_t nRuleChangeActivationThreshold
Definition: params.h:66
DeploymentPos
Definition: params.h:16
static constexpr int64_t ALWAYS_ACTIVE
Definition: params.h:43
uint32_t nMinerConfirmationWindow
Definition: params.h:67
bool fPowNoRetargeting
Definition: params.h:72
unsigned int uint32_t
Definition: stdint.h:21
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]
Definition: params.h:68
int BIP66Height
Definition: params.h:60
int64_t nPowTargetSpacing
Definition: params.h:73
Definition: params.h:18
static constexpr int64_t NO_TIMEOUT
Definition: params.h:37
int64_t DifficultyAdjustmentInterval() const
Definition: params.h:75
Definition: params.h:20
Definition: uint256.h:121
int64_t nPowTargetTimespan
Definition: params.h:74
uint256 nMinimumChainWork
Definition: params.h:76
int BIP34Height
Definition: params.h:55
Definition: params.h:19
uint256 powLimit
Definition: params.h:70
Definition: params.h:14
signed long long int64_t
Definition: stdint.h:18
uint256 BIP16Exception
Definition: params.h:53
uint256 BIP34Hash
Definition: params.h:56
Definition: params.h:28
int64_t nTimeout
Definition: params.h:34
int64_t nStartTime
Definition: params.h:32