Raven Core  3.0.0
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 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef RAVEN_CONSENSUS_PARAMS_H
8 #define RAVEN_CONSENSUS_PARAMS_H
9 
10 #include "uint256.h"
11 #include <map>
12 #include <string>
13 
14 namespace Consensus {
15 
17 {
19  DEPLOYMENT_ASSETS, // Deployment of RIP2
20  DEPLOYMENT_MESSAGING, // Delpoyment of RIP5
22  // DEPLOYMENT_CSV, // Deployment of BIP68, BIP112, and BIP113.
23 // DEPLOYMENT_SEGWIT, // Deployment of BIP141, BIP143, and BIP147.
24  // NOTE: Also add new deployments to VersionBitsDeploymentInfo in versionbits.cpp
26 };
27 
33  int bit;
35  int64_t nStartTime;
37  int64_t nTimeout;
42 };
43 
47 struct Params {
54  // uint256 BIP34Hash;
56  // int BIP65Height;
58  // int BIP66Height;
73  int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }
78 };
79 } // namespace Consensus
80 
81 #endif // RAVEN_CONSENSUS_PARAMS_H
uint32_t nOverrideMinerConfirmationWindow
Use to override the confirmation window on a specific BIP.
Definition: params.h:39
int64_t nPowTargetTimespan
Definition: params.h:72
bool fPowNoRetargeting
Definition: params.h:70
bool fPowAllowMinDifficultyBlocks
Definition: params.h:69
int nSubsidyHalvingInterval
Definition: params.h:49
bool nBIP34Enabled
Block height and hash at which BIP34 becomes active.
Definition: params.h:51
bool nSegwitEnabled
Definition: params.h:76
uint256 powLimit
Proof of work parameters.
Definition: params.h:68
DeploymentPos
Definition: params.h:16
Struct for each individual consensus rule change using BIP9.
Definition: params.h:31
int64_t nStartTime
Start MedianTime for version bits miner confirmation.
Definition: params.h:35
int64_t nPowTargetSpacing
Definition: params.h:71
bool nBIP65Enabled
Definition: params.h:52
bool nCSVEnabled
Definition: params.h:77
uint32_t nMinerConfirmationWindow
Definition: params.h:65
Parameters that influence chain consensus.
Definition: params.h:47
int64_t DifficultyAdjustmentInterval() const
Definition: params.h:73
int64_t nTimeout
Timeout/expiry MedianTime for the deployment attempt.
Definition: params.h:37
256-bit opaque blob.
Definition: uint256.h:123
uint256 nMinimumChainWork
Definition: params.h:74
uint256 defaultAssumeValid
Definition: params.h:75
bool nBIP66Enabled
Definition: params.h:53
uint32_t nRuleChangeActivationThreshold
Block height at which BIP65 becomes active.
Definition: params.h:64
int bit
Bit position to select the particular bit in nVersion.
Definition: params.h:33
uint32_t nOverrideRuleChangeActivationThreshold
Use to override the the activation threshold on a specific BIP.
Definition: params.h:41
uint256 hashGenesisBlock
Definition: params.h:48