try fix extralen bug. Add is_STAKED == 2 to have a consensus block reward of 0.

This commit is contained in:
blackjok3r
2019-01-25 19:59:42 +08:00
parent 4bda6bcac4
commit d5b76cee9d
2 changed files with 8 additions and 1 deletions

View File

@@ -1165,6 +1165,10 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);
uint64_t komodo_commission(const CBlock *pblock,int32_t height)
{
// LABS fungible chains, cannot have any block reward!
if ( is_STAKED(ASSETCHAINS_SYMBOL) == 2 )
return(0);
int32_t i,j,n=0,txn_count; int64_t nSubsidy; uint64_t commission,total = 0;
txn_count = pblock->vtx.size();
if ( ASSETCHAINS_FOUNDERS != 0 )