Allow old style

This commit is contained in:
jl777
2019-01-20 23:08:38 -11:00
parent 9ff5e8de93
commit 00151d02b0

View File

@@ -661,7 +661,12 @@ int32_t komodo_isPoS(CBlock *pblock,int32_t height)
{ {
fprintf(stderr,"validate proper %s %s signature and unlockht preservation\n",voutaddr,destaddr); fprintf(stderr,"validate proper %s %s signature and unlockht preservation\n",voutaddr,destaddr);
return(MarmaraPoScheck(destaddr,opret,pblock->vtx[n-1].vout[numvouts-1].scriptPubKey)); return(MarmaraPoScheck(destaddr,opret,pblock->vtx[n-1].vout[numvouts-1].scriptPubKey));
} else fprintf(stderr,"reject ht.%d PoS block\n",height); }
else
{
fprintf(stderr,"reject ht.%d PoS block\n",height);
return(1); // allow until MTST3
}
} }
} }
} }
@@ -2174,7 +2179,7 @@ int32_t komodo_staked(CMutableTransaction &txNew,uint32_t nBits,uint32_t *blockt
{ {
const CScript &scriptPubKey = tx.vout[vout].scriptPubKey; const CScript &scriptPubKey = tx.vout[vout].scriptPubKey;
array = komodo_addutxo(array,&numkp,&maxkp,(uint32_t)pindex->nTime,(uint64_t)nValue,txid,vout,coinaddr,hashbuf,(CScript)scriptPubKey); array = komodo_addutxo(array,&numkp,&maxkp,(uint32_t)pindex->nTime,(uint64_t)nValue,txid,vout,coinaddr,hashbuf,(CScript)scriptPubKey);
fprintf(stderr,"addutxo %.8f numkp.%d vs max.%d\n",(double)nValue/COIN,numkp,maxkp); //fprintf(stderr,"addutxo %.8f numkp.%d vs max.%d\n",(double)nValue/COIN,numkp,maxkp);
} }
} }
} }