aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorHarryWu <imharrywu@users.noreply.github.com>2014-11-19 14:01:18 +0800
committerHarryWu <imharrywu@users.noreply.github.com>2014-11-19 14:01:18 +0800
commit60d1ecd378d8aeb366da566d9c791399d77ffafc (patch)
tree6779fdb75989f465915b4b8409e287b6c1e8a359 /src/main.cpp
parentfd3777b0b272ad4ce7fbb152917353aa46879f89 (diff)
downloadbitcoin-60d1ecd378d8aeb366da566d9c791399d77ffafc.tar.xz
change nSubsidy's type from int64_t to CAmount
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2bff781bfa..512df775d0 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.