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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
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.