Bitcoin ABC  0.26.3
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 
13 class CBlockIndex;
14 class CTxOut;
15 
16 namespace Consensus {
17 struct Amount;
18 struct Params;
19 } // namespace Consensus
20 
22  const Amount &coinbaseValue,
23  const CBlockIndex *pprev);
24 
25 std::unordered_set<CTxDestination, TxDestinationHasher>
27 
31 bool 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.
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:26
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:57
Amount GetMinerFundAmount(const Consensus::Params &params, const Amount &coinbaseValue, const CBlockIndex *pprev)
Definition: minerfund.cpp:22
std::unordered_set< CTxDestination, TxDestinationHasher > GetMinerFundWhitelist(const Consensus::Params &params)
Definition: minerfund.cpp:49
Definition: amount.h:19
Parameters that influence chain consensus.
Definition: params.h:34