5#ifndef BITCOIN_POLICY_BLOCK_RTT_H
6#define BITCOIN_POLICY_BLOCK_RTT_H
38std::optional<uint32_t>
const CChainParams & Params()
Return the currently selected parameters.
The block chain is a tree shaped structure starting with the genesis block at the root,...
RTTPolicy(const Consensus::Params &consensusParams, const CBlockIndex &blockIndex)
const Consensus::Params & m_consensusParams
bool operator()(BlockPolicyValidationState &state) override
const CBlockIndex & m_blockIndex
static constexpr bool DEFAULT_ENABLE_RTT
Default for -enablertt.
std::optional< uint32_t > GetNextRTTWorkRequired(const CBlockIndex *pprev, int64_t now, const Consensus::Params &consensusParams)
Compute the real time block hash target given the previous block parameters.
bool isRTTEnabled(const Consensus::Params ¶ms, const CBlockIndex *pprev)
Whether the RTT feature is enabled.
Parameters that influence chain consensus.