Bitcoin ABC 0.30.7
P2P Digital Currency
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
19private:
24
25public:
26 MinerFundPolicy(const Consensus::Params &consensusParams,
27 const CBlockIndex &blockIndex, const CBlock &block,
28 const Amount &blockReward)
29 : m_block(block), m_blockReward(blockReward),
30 m_consensusParams(consensusParams), m_blockIndex(blockIndex) {}
31
32 bool operator()(BlockPolicyValidationState &state) override;
33};
34
35#endif // BITCOIN_POLICY_BLOCK_MINERFUND_H
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:19
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
Definition: amount.h:19
Parameters that influence chain consensus.
Definition: params.h:34