Fix off-by-one found by our Legendary Warrior @denioD

This commit is contained in:
Duke Leto
2020-09-20 12:34:11 -04:00
parent 3a2288bcc4
commit b4de87db04
2 changed files with 2 additions and 3 deletions

View File

@@ -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 :)

View File

@@ -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)