6 #ifndef PIVX_CONSENSUS_PARAMS_H
7 #define PIVX_CONSENSUS_PARAMS_H
238 const int utxoFromBlockHeight,
const uint32_t utxoFromBlockTime)
const
242 return (utxoFromBlockTime +
nStakeMinAge <= contextTime);
262 static CBigNum bnHexModulus = 0;
265 static CBigNum bnDecModulus = 0;
268 return (useModulusV1 ? &ZCParamsHex : &ZCParamsDec);
279 std::map<LLMQType, LLMQParams>
llmqs;
int64_t CAmount
Amount in PIV (Can be negative)
void SetDec(const std::string &str)
void SetHex(const std::string &str)
Parameter classes for Zerocoin.
UpgradeIndex
Index into Params.vUpgrades and NetworkUpgradeInfo.
boost::optional< T > Optional
Substitute for C++17 std::optional.
int signingActiveQuorumCount
int nProtocolVersion
The first protocol version which will understand the new consensus rules.
static constexpr int ALWAYS_ACTIVE
Special value for nActivationHeight indicating that the upgrade is always active.
int nActivationHeight
Height of the first block for which the new consensus rules will be active.
static constexpr int NO_ACTIVATION_HEIGHT
Special value for nActivationHeight indicating that the upgrade will never activate.
Optional< uint256 > hashActivationBlock
The hash of the block at height nActivationHeight, if known.
Parameters that influence chain consensus.
int64_t nTime_EnforceNewSporkKey
LLMQType llmqTypeChainLocks
uint256 ProofOfStakeLimit(const bool fV2) const
int ZC_MinMintConfirmations
CAmount nNewMNBlockReward
int64_t nTargetTimespanV2
int64_t nPivxBadBlockTime
bool IsTimeProtocolV2(const int nHeight) const
int64_t nProposalEstablishmentTime
NetworkUpgrade vUpgrades[MAX_NETWORK_UPGRADES]
int64_t nTime_RejectOldSporkKey
bool HasStakeMinAgeOrDepth(const int contextHeight, const uint32_t contextTime, const int utxoFromBlockHeight, const uint32_t utxoFromBlockTime) const
Optional< LLMQParams > GetLLMQParams(uint8_t llmqtype) const
std::string strSporkPubKey
int64_t TargetTimespan(const bool fV2=true) const
std::string strSporkPubKeyOld
int ZC_MaxPublicSpendsPerTx
int MasternodeCollateralMinConf() const
bool IsValidBlockTimeStamp(const int64_t nTime, const int nHeight) const
libzerocoin::ZerocoinParams * Zerocoin_Params(bool useModulusV1) const
int FutureBlockTimeDrift(const int nHeight) const
unsigned int nPivxBadBlockBits
bool MoneyRange(const CAmount &nValue) const
int nBudgetFeeConfirmations
int height_last_ZC_WrappedSerials
int height_last_ZC_AccumCheckpoint
bool NetworkUpgradeActive(int nHeight, Consensus::UpgradeIndex idx) const
Returns true if the given network upgrade is active as of the given block height.
int height_last_invalid_UTXO
bool fPowAllowMinDifficultyBlocks
std::map< LLMQType, LLMQParams > llmqs