fix asgin

This commit is contained in:
blackjok3r
2018-12-05 23:31:02 +08:00
parent 11a9543ba3
commit 5fa97bf208

View File

@@ -1127,7 +1127,7 @@ uint64_t komodo_commission(const CBlock *pblock,int32_t height)
commission = ((nSubsidy * ASSETCHAINS_COMMISSION) / COIN);
if ( ASSETCHAINS_FOUNDERS_PERIOD != 0 )
{
if ( pblock.GetHeight() % ASSETCHAINS_FOUNDERS_PERIOD == 0 )
if ( pblock->GetHeight() % ASSETCHAINS_FOUNDERS_PERIOD == 0 )
commission = commission * ASSETCHAINS_FOUNDERS_PERIOD;
else
commission = 0;