Commit 37e7db93 authored by Tom Bradshaw's avatar Tom Bradshaw

Add tx fees to stake reward.

parent 34382e2c
......@@ -383,7 +383,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn, CWallet* pwallet,
nValueNodeRewards += txCoinbase.vout[SN_PMT_SLOT].nValue;
//Reduce PoS reward by the node rewards
txCoinStake.vout[0].nValue -= nValueNodeRewards;
txCoinStake.vout[0].nValue = GetBlockValue(nHeight, nFees) - nValueNodeRewards;
pblock->vtx[1] = txCoinStake;
// Make sure coinbase has null values
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