From 60d1ecd378d8aeb366da566d9c791399d77ffafc Mon Sep 17 00:00:00 2001 From: HarryWu Date: Wed, 19 Nov 2014 14:01:18 +0800 Subject: [PATCH] change nSubsidy's type from int64_t to CAmount --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 2bff781bf..512df775d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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.