change nSubsidy's type from int64_t to CAmount

This commit is contained in:
HarryWu 2014-11-19 14:01:18 +08:00
parent fd3777b0b2
commit 60d1ecd378

View File

@ -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.