From b4de87db04a3218d229207d9604fb669158f4417 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 20 Sep 2020 12:34:11 -0400 Subject: [PATCH] Fix off-by-one found by our Legendary Warrior @denioD --- src/komodo_bitcoind.h | 3 +-- src/komodo_utils.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 76e075bd6..87add6128 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1246,9 +1246,8 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams); // Here Be Dragons! -- Duke Leto uint64_t hush_commission(int height) { - // BR_END is the 31st halving int32_t starting_commission = 125000000, HALVING1 = GetArg("-z2zheight",340000), - INTERVAL = GetArg("-ac_halving1",840000), TRANSITION = 129, BR_END = 50740000; + INTERVAL = GetArg("-ac_halving1",840000), TRANSITION = 128; uint64_t commission = 0; //TODO: Likely a bug hiding here or at the next halving :) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 9cf26d6ba..2e4e679ca 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1552,7 +1552,7 @@ uint64_t hush_block_subsidy(int height) int32_t HALVING1 = GetArg("-z2zheight",340000); //TODO: support INTERVAL :( //int32_t INTERVAL = GetArg("-ac_halving1",840000); - int32_t TRANSITION = 129; + int32_t TRANSITION = 128; if (height < TRANSITION) { if(fDebug)