Bitcoin ABC 0.30.5
P2P Digital Currency
minerfund.h
Go to the documentation of this file.
1// Copyright (c) 2020 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_MINERFUND_H
6#define BITCOIN_MINERFUND_H
7
8#include <script/standard.h>
9#include <util/hasher.h>
10
11#include <unordered_set>
12
13class CBlockIndex;
14class CTxOut;
15
16namespace Consensus {
17struct Amount;
18struct Params;
19} // namespace Consensus
20
22 const Amount &coinbaseValue,
23 const CBlockIndex *pprev);
24
25std::unordered_set<CTxDestination, TxDestinationHasher>
27
31bool CheckMinerFund(const Consensus::Params &params,
32 const std::vector<CTxOut> &coinbaseTxOut,
33 const Amount &blockReward, const CBlockIndex *pprev);
34
35#endif // BITCOIN_MINERFUND_H
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:19
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:25
An output of a transaction.
Definition: transaction.h:128
bool CheckMinerFund(const Consensus::Params &params, const std::vector< CTxOut > &coinbaseTxOut, const Amount &blockReward, const CBlockIndex *pprev)
Returns false if there is an invalid miner fund.
Definition: minerfund.cpp:59
std::unordered_set< CTxDestination, TxDestinationHasher > GetMinerFundWhitelist(const Consensus::Params &params)
Definition: minerfund.cpp:51
Amount GetMinerFundAmount(const Consensus::Params &params, const Amount &coinbaseValue, const CBlockIndex *pprev)
Definition: minerfund.cpp:22
Definition: amount.h:19
Parameters that influence chain consensus.
Definition: params.h:34