Changeset View
Changeset View
Standalone View
Standalone View
src/minerfund.h
// Copyright (c) 2020 The Bitcoin developers | // Copyright (c) 2020 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_MINERFUND_H | #ifndef BITCOIN_MINERFUND_H | ||||
#define BITCOIN_MINERFUND_H | #define BITCOIN_MINERFUND_H | ||||
#include <amount.h> | |||||
#include <script/standard.h> | #include <script/standard.h> | ||||
#include <vector> | #include <vector> | ||||
class CBlockIndex; | class CBlockIndex; | ||||
namespace Consensus { | namespace Consensus { | ||||
struct Params; | struct Params; | ||||
} | } | ||||
/** | Amount GetMinerFundAmount(const Amount &coinbaseValue); | ||||
* Percentage of the block reward to be sent to the fund. | |||||
*/ | |||||
static constexpr int MINER_FUND_RATIO = 8; | |||||
std::vector<CTxDestination> | std::vector<CTxDestination> | ||||
GetMinerFundWhitelist(const Consensus::Params ¶ms, | GetMinerFundWhitelist(const Consensus::Params ¶ms, | ||||
const CBlockIndex *pindexPrev); | const CBlockIndex *pindexPrev); | ||||
#endif // BITCOIN_MINERFUND_H | #endif // BITCOIN_MINERFUND_H |