From 9e288d185b069b3a0cac13c9850a4f9613772860 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sat, 19 Sep 2020 12:17:26 -0400 Subject: [PATCH] Define the halving interval, initial transition period and fix format string bug --- src/komodo_utils.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index f134e9957..9cf26d6ba 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1549,7 +1549,10 @@ uint64_t komodo_max_money() uint64_t hush_block_subsidy(int height) { uint64_t subsidy = 0; - int32_t HALVING1 = GetArg("-z2zheight",340000), + int32_t HALVING1 = GetArg("-z2zheight",340000); + //TODO: support INTERVAL :( + //int32_t INTERVAL = GetArg("-ac_halving1",840000); + int32_t TRANSITION = 129; if (height < TRANSITION) { if(fDebug) @@ -1627,7 +1630,7 @@ uint64_t hush_block_subsidy(int height) } } if(fDebug) - fprintf(stderr,"%s: subsidy=%ul at height=%d\n",__func__,subsidy,height); + fprintf(stderr,"%s: subsidy=%lu at height=%d\n",__func__,subsidy,height); return subsidy; }