Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/params.h
Show All 9 Lines | |||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <limits> | #include <limits> | ||||
namespace Consensus { | namespace Consensus { | ||||
enum DeploymentPos { | enum DeploymentPos { | ||||
DEPLOYMENT_TESTDUMMY, | DEPLOYMENT_TESTDUMMY, | ||||
DEPLOYEMENT_MINER_FUND, | |||||
DEPLOYEMENT_MINER_FUND_ABC, | |||||
DEPLOYEMENT_MINER_FUND_BCHD, | |||||
DEPLOYEMENT_MINER_FUND_ELECTRON_CASH, | |||||
// NOTE: Also add new deployments to VersionBitsDeploymentInfo in | // NOTE: Also add new deployments to VersionBitsDeploymentInfo in | ||||
// versionbitsinfo.cpp | // versionbitsinfo.cpp | ||||
MAX_VERSION_BITS_DEPLOYMENTS, | MAX_VERSION_BITS_DEPLOYMENTS, | ||||
}; | }; | ||||
/** | /** | ||||
* Struct for each individual consensus rule change using BIP9. | * Struct for each individual consensus rule change using BIP9. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | struct Params { | ||||
/** | /** | ||||
* Don't warn about unknown BIP 9 activations below this height. | * Don't warn about unknown BIP 9 activations below this height. | ||||
* This prevents us from warning about the CSV and segwit activations. | * This prevents us from warning about the CSV and segwit activations. | ||||
*/ | */ | ||||
int MinBIP9WarningHeight; | int MinBIP9WarningHeight; | ||||
uint32_t nMinerConfirmationWindow; | uint32_t nMinerConfirmationWindow; | ||||
BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]; | BIP9Deployment vDeployments[MAX_VERSION_BITS_DEPLOYMENTS]; | ||||
/** Enable or disable te miner fund by default */ | |||||
bool enableMinerFund; | |||||
/** Proof of work parameters */ | /** Proof of work parameters */ | ||||
uint256 powLimit; | uint256 powLimit; | ||||
bool fPowAllowMinDifficultyBlocks; | bool fPowAllowMinDifficultyBlocks; | ||||
bool fPowNoRetargeting; | bool fPowNoRetargeting; | ||||
int64_t nPowTargetSpacing; | int64_t nPowTargetSpacing; | ||||
int64_t nPowTargetTimespan; | int64_t nPowTargetTimespan; | ||||
int64_t DifficultyAdjustmentInterval() const { | int64_t DifficultyAdjustmentInterval() const { | ||||
return nPowTargetTimespan / nPowTargetSpacing; | return nPowTargetTimespan / nPowTargetSpacing; | ||||
} | } | ||||
uint256 nMinimumChainWork; | uint256 nMinimumChainWork; | ||||
BlockHash defaultAssumeValid; | BlockHash defaultAssumeValid; | ||||
}; | }; | ||||
} // namespace Consensus | } // namespace Consensus | ||||
#endif // BITCOIN_CONSENSUS_PARAMS_H | #endif // BITCOIN_CONSENSUS_PARAMS_H |