22 "policy-bad-miner-fund",
23 strprintf(
"Block %s violates miner fund policy",
bool IsWellingtonEnabled(const Consensus::Params ¶ms, int32_t nHeight)
Check if May 15th, 2023 protocol upgrade has activated.
std::vector< CTransactionRef > vtx
CBlockIndex * pprev
pointer to the index of the predecessor of this block
BlockHash GetBlockHash() const
const Amount & m_blockReward
const Consensus::Params & m_consensusParams
bool operator()(BlockPolicyValidationState &state) override
const CBlockIndex & m_blockIndex
bool Invalid(Result result, const std::string &reject_reason="", const std::string &debug_message="")
std::string ToString() const
bool CheckMinerFund(const Consensus::Params ¶ms, const std::vector< CTxOut > &coinbaseTxOut, const Amount &blockReward, const CBlockIndex *pprev)
Returns false if there is an invalid miner fund.
@ POLICY_VIOLATION
A block policy rule was violated. This block should be parked.