Bitcoin ABC  0.29.2
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 Consensus::Params &params, const Amount &coinbaseValue, const CBlockIndex *pprev)
 
static CTxDestination BuildDestination (const std::string &dest)
 
static const CTxDestinationGetMinerFundDestination ()
 
std::unordered_set< CTxDestination, TxDestinationHasherGetMinerFundWhitelist (const Consensus::Params &params)
 
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. More...
 

Variables

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

Function Documentation

◆ BuildDestination()

static CTxDestination BuildDestination ( const std::string &  dest)
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:

◆ CheckMinerFund()

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.

True otherwise.

Definition at line 57 of file minerfund.cpp.

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

◆ GetMinerFundAmount()

Amount GetMinerFundAmount ( const Consensus::Params params,
const Amount coinbaseValue,
const CBlockIndex pprev 
)

Definition at line 22 of file minerfund.cpp.

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

◆ GetMinerFundDestination()

static const CTxDestination& GetMinerFundDestination ( )
static

Definition at line 36 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)

Definition at line 49 of file minerfund.cpp.

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

Variable Documentation

◆ LEGACY_MINER_FUND_RATIO

constexpr int LEGACY_MINER_FUND_RATIO = 8
staticconstexpr

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

Definition at line 19 of file minerfund.cpp.

◆ MINER_FUND_RATIO

constexpr int MINER_FUND_RATIO = 32
staticconstexpr

Definition at line 20 of file minerfund.cpp.