Bitcoin ABC 0.30.7
P2P Digital Currency
|
#include <minerfund.h>
#include <blockindex.h>
#include <chainparams.h>
#include <common/args.h>
#include <consensus/activation.h>
#include <consensus/amount.h>
#include <currencyunit.h>
#include <key_io.h>
#include <primitives/transaction.h>
Go to the source code of this file.
Functions | |
Amount | GetMinerFundAmount (const Consensus::Params ¶ms, const Amount &coinbaseValue, const CBlockIndex *pprev) |
static CTxDestination | BuildDestination (const std::string &dest) |
static const CTxDestination & | GetMinerFundDestination () |
std::unordered_set< CTxDestination, TxDestinationHasher > | GetMinerFundWhitelist (const Consensus::Params ¶ms) |
bool | CheckMinerFund (const Consensus::Params ¶ms, 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 |
|
static |
Definition at line 31 of file minerfund.cpp.
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 59 of file minerfund.cpp.
Amount GetMinerFundAmount | ( | const Consensus::Params & | params, |
const Amount & | coinbaseValue, | ||
const CBlockIndex * | pprev | ||
) |
Definition at line 22 of file minerfund.cpp.
|
static |
Definition at line 38 of file minerfund.cpp.
std::unordered_set< CTxDestination, TxDestinationHasher > GetMinerFundWhitelist | ( | const Consensus::Params & | params | ) |
Definition at line 51 of file minerfund.cpp.
|
staticconstexpr |
Percentage of the block reward to be sent to the fund.
Definition at line 19 of file minerfund.cpp.
|
staticconstexpr |
Definition at line 20 of file minerfund.cpp.