diff options
| author | Max K. <[email protected]> | 2015-06-28 20:42:03 +0200 |
|---|---|---|
| committer | Max K. <[email protected]> | 2015-06-28 20:42:03 +0200 |
| commit | e0ca377684234b1b1443b11dc85e1d8b4931692a (patch) | |
| tree | 0ba84e45cb4bac17f1d4a547eacfa7d284dd4152 /src/miner.cpp | |
| parent | Merge pull request #1187 from rnicoll/1.10-scrypt (diff) | |
| parent | Add Dogecoin block subsidy calculations. (diff) | |
| download | discoin-e0ca377684234b1b1443b11dc85e1d8b4931692a.tar.xz discoin-e0ca377684234b1b1443b11dc85e1d8b4931692a.zip | |
Merge pull request #1188 from rnicoll/1.10-reward
Add Dogecoin block subsidy calculations
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 04d7f5186..3e06e877c 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -10,6 +10,7 @@ #include "consensus/consensus.h" #include "consensus/validation.h" #include "crypto/scrypt.h" +#include "dogecoin.h" #include "hash.h" #include "main.h" #include "net.h" @@ -324,7 +325,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) LogPrintf("CreateNewBlock(): total size %u\n", nBlockSize); // Compute final coinbase transaction. - txNew.vout[0].nValue = nFees + GetBlockSubsidy(nHeight, chainparams.GetConsensus()); + txNew.vout[0].nValue = nFees + GetDogecoinBlockSubsidy(nHeight, chainparams.GetConsensus(), pindexPrev->GetBlockHash()); txNew.vin[0].scriptSig = CScript() << nHeight << OP_0; pblock->vtx[0] = txNew; pblocktemplate->vTxFees[0] = -nFees; |