#include "miner.h"
#include "kernel.h"
#include "kernel_worker.h"
+#include "wallet.h"
//////////////////////////////////////////////////////////////////////////////
if (!fProofOfStake)
{
- pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(pblock->nBits, nFees);
+ pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(pblock->nBits) + nFees;
if (fDebug)
printf("CreateNewBlock(): PoW reward %" PRIu64 "\n", pblock->vtx[0].vout[0].nValue);