diff --git a/src/miner.cpp b/src/miner.cpp --- a/src/miner.cpp +++ b/src/miner.cpp @@ -194,8 +194,7 @@ const std::vector whitelisted = GetMinerFundWhitelist(consensusParams, pindexPrev); if (!whitelisted.empty()) { - const Amount fund = - (MINER_FUND_RATIO * coinbaseTx.vout[0].nValue) / 100; + const Amount fund = GetMinerFundAmount(coinbaseTx.vout[0].nValue); coinbaseTx.vout[0].nValue -= fund; coinbaseTx.vout.emplace_back(fund, GetScriptForDestination(whitelisted[0])); diff --git a/src/minerfund.h b/src/minerfund.h --- a/src/minerfund.h +++ b/src/minerfund.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_MINERFUND_H #define BITCOIN_MINERFUND_H +#include #include