Bitcoin ABC  0.26.3
P2P Digital Currency
Functions | Variables
minerfund.cpp File Reference
#include <minerfund.h>
#include <blockindex.h>
#include <chainparams.h>
#include <consensus/activation.h>
#include <consensus/amount.h>
#include <currencyunit.h>
#include <key_io.h>
#include <primitives/transaction.h>
#include <util/system.h>
Include dependency graph for minerfund.cpp:

Go to the source code of this file.

Functions

Amount GetMinerFundAmount (const Amount &coinbaseValue)
 
static CTxDestination BuildDestination (const std::string &dest)
 
static const CTxDestinationGetMinerFundDestination (const bool useAxionDestination)
 
std::unordered_set< CTxDestination, TxDestinationHasherGetMinerFundWhitelist (const Consensus::Params &params, const CBlockIndex *pindexPrev)
 
bool CheckMinerFund (const Consensus::Params &params, const CBlockIndex *pindexPrev, const std::vector< CTxOut > &coinbaseTxOut, const Amount &blockReward)
 Returns false if there is an invalid miner fund. More...
 

Variables

static constexpr int MINER_FUND_RATIO = 8
 Percentage of the block reward to be sent to the fund. More...
 

Function Documentation

◆ BuildDestination()

static CTxDestination BuildDestination ( const std::string &  dest)
static

Definition at line 25 of file minerfund.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckMinerFund()

bool CheckMinerFund ( const Consensus::Params params,
const CBlockIndex pindexPrev,
const std::vector< CTxOut > &  coinbaseTxOut,
const Amount blockReward 
)

Returns false if there is an invalid miner fund.

True otherwise.

Definition at line 65 of file minerfund.cpp.

Here is the call graph for this function:

◆ GetMinerFundAmount()

Amount GetMinerFundAmount ( const Amount coinbaseValue)

Definition at line 21 of file minerfund.cpp.

Here is the caller graph for this function:

◆ GetMinerFundDestination()

static const CTxDestination& GetMinerFundDestination ( const bool  useAxionDestination)
static

Definition at line 31 of file minerfund.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMinerFundWhitelist()

std::unordered_set<CTxDestination, TxDestinationHasher> GetMinerFundWhitelist ( const Consensus::Params params,
const CBlockIndex pindexPrev 
)

Definition at line 52 of file minerfund.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MINER_FUND_RATIO

constexpr int MINER_FUND_RATIO = 8
staticconstexpr

Percentage of the block reward to be sent to the fund.

Definition at line 19 of file minerfund.cpp.