Changeset View
Changeset View
Standalone View
Standalone View
src/minerfund.h
Show All 13 Lines | |||||
namespace Consensus { | namespace Consensus { | ||||
struct Amount; | struct Amount; | ||||
struct Params; | struct Params; | ||||
} // namespace Consensus | } // namespace Consensus | ||||
Amount GetMinerFundAmount(const Amount &coinbaseValue); | Amount GetMinerFundAmount(const Amount &coinbaseValue); | ||||
enum MinerFundFlags : uint8_t { | |||||
CONSENSUS = (1 << 0), | |||||
POLICY = (1 << 1), | |||||
}; | |||||
std::vector<CTxDestination> | std::vector<CTxDestination> | ||||
GetMinerFundWhitelist(const Consensus::Params ¶ms, | GetMinerFundWhitelist(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | const CBlockIndex *pindexPrev, const uint8_t flags); | ||||
/** | /** | ||||
* Returns false if there is an invalid miner fund. True otherwise. | * Returns false if there is an invalid miner fund. True otherwise. | ||||
*/ | */ | ||||
bool CheckMinerFund(const Consensus::Params ¶ms, const CBlockIndex *pindex, | bool CheckMinerFund(const Consensus::Params ¶ms, const CBlockIndex *pindex, | ||||
const CBlock &block, const Amount &blockFees); | const CBlock &block, const Amount &blockFees, | ||||
const uint8_t flags = MinerFundFlags::CONSENSUS); | |||||
#endif // BITCOIN_MINERFUND_H | #endif // BITCOIN_MINERFUND_H |