From 2ff46aa40bb5b85e1717bac6b782bf7efbb76325 Mon Sep 17 00:00:00 2001 From: qwerty55 Date: Wed, 11 Jun 2014 04:13:32 -0400 Subject: [PATCH] added upper boundary to block reward reduction to ensure 63 million coins maximum --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 86d7eeb..eedd055 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1110,7 +1110,13 @@ int64 static GetBlockValue(int nHeight, int64 nFees) // Permantently reduce the number of mined coins to 10 after block 620000 if(nHeight > 620000){ - nSubsidy = 10 * COIN; + if(nHeight < 3756000){ + nSubsidy = 10 * COIN; + } + else + { + nSubsidy = 0 * COIN; + } }