Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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.
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.
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
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