Commit dd1eb53a authored by Ashot's avatar Ashot

Used GetBlockValue if masternode payment is disabled

parent a7ca0041
Pipeline #947 failed with stage
in 31 minutes and 50 seconds
......@@ -369,10 +369,15 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
}
// Masternode and general budget payments
if (IsSporkActive(SPORK_4_ENABLE_MASTERNODE_PAYMENTS)) {
if (IsSporkActive(SPORK_4_ENABLE_MASTERNODE_PAYMENTS))
{
FillBlockPayee(txCoinbase, nFees);
SNFillBlockPayee(txCoinbase, nFees);
}
else
{
txCoinbase.vout[0].nValue = GetBlockValue(pindexPrev->nHeight, nFees);
}
// Proof of stake blocks pay the mining reward in the coinstake transaction
if (fProofOfStake) {
......@@ -413,6 +418,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
}
}
nLastBlockTx = nBlockTx;
nLastBlockSize = nBlockSize;
LogPrintf("CreateNewBlock(): total size %u\n", nBlockSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment