Changeset View
Changeset View
Standalone View
Standalone View
src/minerfund.cpp
| Show All 20 Lines | |||||
| static CTxDestination BuildDestination(const std::string &dest) { | static CTxDestination BuildDestination(const std::string &dest) { | ||||
| const auto mainNetParams = CreateChainParams(CBaseChainParams::MAIN); | const auto mainNetParams = CreateChainParams(CBaseChainParams::MAIN); | ||||
| return DecodeDestination(dest, *mainNetParams); | return DecodeDestination(dest, *mainNetParams); | ||||
| } | } | ||||
| static const CTxDestination &GetMinerFundDestination() { | static const CTxDestination &GetMinerFundDestination() { | ||||
| static CTxDestination dest = | static CTxDestination dest = | ||||
| BuildDestination("pqnqv9lt7e5vjyp0w88zf2af0l92l8rxdgnlxww9j9"); | BuildDestination("abc:pqnqv9lt7e5vjyp0w88zf2af0l92l8rxdg9kfyp5cf"); | ||||
| return dest; | return dest; | ||||
| } | } | ||||
| std::vector<CTxDestination> | std::vector<CTxDestination> | ||||
| GetMinerFundWhitelist(const Consensus::Params ¶ms, | GetMinerFundWhitelist(const Consensus::Params ¶ms, | ||||
| const CBlockIndex *pindexPrev) { | const CBlockIndex *pindexPrev) { | ||||
| if (!gArgs.GetBoolArg("-enableminerfund", params.enableMinerFund)) { | if (!gArgs.GetBoolArg("-enableminerfund", params.enableMinerFund)) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| if (!IsAxionEnabled(params, pindexPrev)) { | if (!IsAxionEnabled(params, pindexPrev)) { | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| return {GetMinerFundDestination()}; | return {GetMinerFundDestination()}; | ||||
| } | } | ||||