Fixed tokenfillbid failure (#1312)
* commented preventcc call * preventcc call restored preventccvouts ++ added for 'B'
This commit is contained in:
@@ -297,6 +297,7 @@ bool AssetsValidate(struct CCcontract_info *cpAssets,Eval* eval,const CTransacti
|
|||||||
return eval->Invalid("vout2 doesnt go to origpubkey fillbuy");
|
return eval->Invalid("vout2 doesnt go to origpubkey fillbuy");
|
||||||
else if ( inputs != tx.vout[2].nValue + tx.vout[4].nValue )
|
else if ( inputs != tx.vout[2].nValue + tx.vout[4].nValue )
|
||||||
return eval->Invalid("asset inputs doesnt match vout2+3 fillbuy");
|
return eval->Invalid("asset inputs doesnt match vout2+3 fillbuy");
|
||||||
|
preventCCvouts ++;
|
||||||
}
|
}
|
||||||
else if( ConstrainVout(tx.vout[2], 1, origTokensCCaddr, inputs) == 0 ) // tokens to originator cc addr (tokens+nonfungible evals)
|
else if( ConstrainVout(tx.vout[2], 1, origTokensCCaddr, inputs) == 0 ) // tokens to originator cc addr (tokens+nonfungible evals)
|
||||||
return eval->Invalid("vout2 doesnt match inputs fillbuy");
|
return eval->Invalid("vout2 doesnt match inputs fillbuy");
|
||||||
@@ -468,7 +469,7 @@ bool AssetsValidate(struct CCcontract_info *cpAssets,Eval* eval,const CTransacti
|
|||||||
}
|
}
|
||||||
|
|
||||||
// what does this do?
|
// what does this do?
|
||||||
bool bPrevent = PreventCC(eval, tx, preventCCvins, numvins, preventCCvouts, numvouts);
|
bool bPrevent = PreventCC(eval, tx, preventCCvins, numvins, preventCCvouts, numvouts); // seems we do not need this call as we already checked vouts well
|
||||||
//std::cerr << "AssetsValidate() PreventCC returned=" << bPrevent << std::endl;
|
//std::cerr << "AssetsValidate() PreventCC returned=" << bPrevent << std::endl;
|
||||||
return (bPrevent);
|
return (bPrevent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user