From c7361e7e6cda8f6299e0ebb7453473f56a1eccda Mon Sep 17 00:00:00 2001 From: snogcel Date: Wed, 30 Apr 2014 22:55:05 -0600 Subject: [PATCH 1/2] block halving schedule adjustment --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f25eb7975dd28..683af2df7c4fd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1075,8 +1075,9 @@ int64 static GetBlockValue(int nHeight, int64 nFees) { int64 nSubsidy = 50 * COIN; - // Subsidy is cut in half every 840000 blocks, which will occur approximately every 4 years - nSubsidy >>= (nHeight / 840000); // Aiden: 840k blocks in ~4 years + // Subsidy is cut in half every 210000 blocks + nSubsidy >>= (nHeight / 210000); + if (nSubsidy < 3.125) nSubsidy = 3.125; // set minimum block reward return nSubsidy + nFees; } @@ -4906,4 +4907,4 @@ class CMainCleanup // orphan transactions mapOrphanTransactions.clear(); } -} instance_of_cmaincleanup; \ No newline at end of file +} instance_of_cmaincleanup; From 3e4485df65e26f8922225d9f16f757224dc9542a Mon Sep 17 00:00:00 2001 From: snogcel Date: Thu, 1 May 2014 07:18:38 -0600 Subject: [PATCH 2/2] Block Halving Schedule Can't think of a better way to do this... --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 683af2df7c4fd..a8df57f4eeb1d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1076,8 +1076,10 @@ int64 static GetBlockValue(int nHeight, int64 nFees) int64 nSubsidy = 50 * COIN; // Subsidy is cut in half every 210000 blocks - nSubsidy >>= (nHeight / 210000); - if (nSubsidy < 3.125) nSubsidy = 3.125; // set minimum block reward + nSubsidy >>= (nHeight / 210000); // cut blocks every 210k + if (nHeight >= 420000) nSubsidy = 12.5 // non-linear... + if (nHeight >= 840000) nSubsidy = 6.25 // non-linear... + if (nHeight >= 1680000) nSubsidy = 3.125 // set minimum payout return nSubsidy + nFees; }