Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
minerfund.h
Go to the documentation of this file.
1// Copyright (c) 2023 The Bitcoin developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_POLICY_BLOCK_MINERFUND_H
6#define BITCOIN_POLICY_BLOCK_MINERFUND_H
7
8#include <consensus/amount.h>
10#include <primitives/block.h>
11
12class CBlockIndex;
13
14namespace Consensus {
15struct Params;
16}
17
34
35#endif // BITCOIN_POLICY_BLOCK_MINERFUND_H
const CChainParams & Params()
Return the currently selected parameters.
Definition block.h:60
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition blockindex.h:25
const CBlock & m_block
Definition minerfund.h:20
MinerFundPolicy(const Consensus::Params &consensusParams, const CBlockIndex &blockIndex, const CBlock &block, const Amount &blockReward)
Definition minerfund.h:26
const Amount & m_blockReward
Definition minerfund.h:21
const Consensus::Params & m_consensusParams
Definition minerfund.h:22
bool operator()(BlockPolicyValidationState &state) override
Definition minerfund.cpp:11
const CBlockIndex & m_blockIndex
Definition minerfund.h:23
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...
Definition random.h:85
Parameters that influence chain consensus.
Definition params.h:34