Skip to content

Commit

Permalink
fixup for miner.cpp: no need to change anything in ptemplateblock
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Jul 12, 2023
1 parent 617b69c commit 7c24707
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,12 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc

bool fMNRewardReallocated = llmq::utils::IsMNRewardReallocationActive(pindexPrev);
if (fMNRewardReallocated) {
if (!CMasternodePayments::GetMasternodeTxOuts(nHeight, blockReward, pblocktemplate->voutMasternodePayments)) {
std::vector<CTxOut> voutMasternodePayments;
if (!CMasternodePayments::GetMasternodeTxOuts(nHeight, blockReward, voutMasternodePayments)) {
LogPrint(BCLog::MNPAYMENTS, "%s -- no masternode to pay (MN list probably empty)\n", __func__);
}
CAmount total{0};
for (const auto& txout : pblocktemplate->voutMasternodePayments) {
for (const auto& txout : voutMasternodePayments) {
LogPrintf("CreateNewBlock() add MN reward %lld to credit pool\n", txout.nValue);
total += txout.nValue;
}
Expand Down

0 comments on commit 7c24707

Please sign in to comment.