This commit is contained in:
jl777
2018-05-08 18:55:16 +03:00
parent 9703f8a03d
commit ba1587fd37
2 changed files with 3 additions and 1 deletions

View File

@@ -414,6 +414,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
if ( (siglen= komodo_staked(txStaked,pblock->nBits,&blocktime,&txtime,&utxotxid,&utxovout,&utxovalue,utxosig)) > 0 )
{
CAmount txfees = 0;
if ( GetAdjustedTime() < pblock->nTime-30 )
return(0);
pblock->vtx.push_back(txStaked);
pblocktemplate->vTxFees.push_back(txfees);
pblocktemplate->vTxSigOps.push_back(GetLegacySigOpCount(txStaked));