Skip to content

Commit

Permalink
Update miner.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AidBit committed Jul 26, 2014
1 parent cecf920 commit 6f98ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.cpp
Expand Up @@ -366,7 +366,7 @@ CBlock* CreateNewBlock(CWallet* pwallet, bool fProofOfStake, int64_t* pFees)

if (!fProofOfStake)
{
int64_t POWReward = GetProofOfWorkReward(pindexPrev->nBits, pindexPrev->nHeight, nFees);
int64_t POWReward = GetProofOfWorkReward(GetLastBlockIndex(pindexBest, false)->nBits, GetLastBlockIndex(pindexBest, false)->nHeight, nFees);
int64_t POWRewardN = POWReward-nFees;
double contribPerc = double(DONATION_PERCENT + FOUNDATION_PERCENT)/100;
pblock->vtx[0].vout[0].nValue = POWReward - POWRewardN*contribPerc;
Expand Down

0 comments on commit 6f98ae5

Please sign in to comment.