Browse Source

change nSubsidy's type from int64_t to CAmount

0.10
HarryWu 10 years ago
parent
commit
60d1ecd378
  1. 2
      src/main.cpp

2
src/main.cpp

@ -1180,7 +1180,7 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex) @@ -1180,7 +1180,7 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex)
CAmount GetBlockValue(int nHeight, const CAmount& nFees)
{
int64_t nSubsidy = 50 * COIN;
CAmount nSubsidy = 50 * COIN;
int halvings = nHeight / Params().SubsidyHalvingInterval();
// Force block reward to zero when right shift is undefined.

Loading…
Cancel
Save