This commit is contained in:
jl777
2019-02-10 09:33:20 -11:00
parent abec8d30fb
commit b488b0b270

View File

@@ -247,9 +247,12 @@ bool TokensValidate(struct CCcontract_info *cp, Eval* eval, const CTransaction &
LOGSTREAM((char *)"cctokens", CCLOG_INFO, stream << "TokensValidate funcId=" << (char)(funcid?funcid:' ') << " evalcode=" << cp->evalcode << std::endl);
//if (eval->GetTxUnconfirmed(tokenid, createTx, hashBlock) == 0)
if (myGetTransaction(tokenid, createTx, hashBlock) == 0)
if (eval->GetTxUnconfirmed(tokenid, createTx, hashBlock) == 0)
//if (myGetTransaction(tokenid, createTx, hashBlock) == 0)
{
fprintf(stderr,"tokenid.%s\n",tokenid.GetHex());
return eval->Invalid("cant find token create txid");
}
else if (IsCCInput(tx.vin[0].scriptSig) != 0)
return eval->Invalid("illegal token vin0");
else if (numvouts < 1)