diff options
| author | Ross Nicoll <[email protected]> | 2015-06-25 11:28:31 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 19:21:49 +0100 |
| commit | 8c0468c2d227e484f36ff24e3e420ad84312203a (patch) | |
| tree | 04a65bbfdc89d768341faa7a5a011482dec53402 /src/miner.cpp | |
| parent | Replace consensus values with Dogecoin equivalents (diff) | |
| download | discoin-8c0468c2d227e484f36ff24e3e420ad84312203a.tar.xz discoin-8c0468c2d227e484f36ff24e3e420ad84312203a.zip | |
Add Dogecoin block subsidy calculations.
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index a12dcec2c..2c50fd94e 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -12,6 +12,7 @@ #include "consensus/consensus.h" #include "consensus/merkle.h" #include "consensus/validation.h" +#include "dogecoin.h" #include "hash.h" #include "validation.h" #include "net.h" @@ -186,7 +187,8 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc coinbaseTx.vin[0].prevout.SetNull(); coinbaseTx.vout.resize(1); coinbaseTx.vout[0].scriptPubKey = scriptPubKeyIn; - coinbaseTx.vout[0].nValue = nFees + GetBlockSubsidy(nHeight, chainparams.GetConsensus()); + coinbaseTx.vout[0].nValue = nFees + GetDogecoinBlockSubsidy(nHeight, chainparams.GetConsensus(), pindexPrev->GetBlockHash( +)); coinbaseTx.vin[0].scriptSig = CScript() << nHeight << OP_0; pblock->vtx[0] = MakeTransactionRef(std::move(coinbaseTx)); pblocktemplate->vchCoinbaseCommitment = GenerateCoinbaseCommitment(*pblock, pindexPrev, chainparams.GetConsensus()); |