Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/params.h
Show First 20 Lines • Show All 87 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 nDAAHalfLife; | int64_t nDAAHalfLife; | ||||
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 |