Behold vast logspam, refactoring and dead code removal

This commit is contained in:
Duke Leto
2020-09-08 12:47:17 -04:00
parent fe4f0f7e9e
commit 807a37e740
3 changed files with 18 additions and 31 deletions

View File

@@ -2406,19 +2406,10 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex,bool checkPOW)
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
fprintf(stderr,"%s: ht.%d\n", __func__, nHeight);
int32_t numhalvings,i; uint64_t numerator; CAmount nSubsidy = 3 * COIN;
if ( ASSETCHAINS_SYMBOL[0] == 0 )
{
if ( nHeight == 1 )
return(100000000 * COIN); // ICO allocation
else if ( nHeight < KOMODO_ENDOFERA )
return(3 * COIN);
else if ( nHeight < 2*KOMODO_ENDOFERA )
return(2 * COIN);
else return(COIN);
} else {
return(komodo_ac_block_subsidy(nHeight));
}
return komodo_ac_block_subsidy(nHeight);
}
bool IsInitialBlockDownload()