Test
This commit is contained in:
@@ -176,7 +176,7 @@ bool AssetsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx
|
|||||||
//vout.n-1: opreturn [EVAL_ASSETS] ['t'] [assetid]
|
//vout.n-1: opreturn [EVAL_ASSETS] ['t'] [assetid]
|
||||||
if ( inputs == 0 )
|
if ( inputs == 0 )
|
||||||
return eval->Invalid("no asset inputs for transfer");
|
return eval->Invalid("no asset inputs for transfer");
|
||||||
fprintf(stderr,"transfer validated %.8f -> %.8f\n",(double)inputs/COIN,(double)outputs/COIN);
|
fprintf(stderr,"transfer validated %.8f -> %.8f (%d %d)\n",(double)inputs/COIN,(double)outputs/COIN,preventCCvins,preventCCvouts);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'b': // buyoffer
|
case 'b': // buyoffer
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ bool RunCCEval(const CC *cond, const CTransaction &tx, unsigned int nIn)
|
|||||||
pthread_mutex_lock(&KOMODO_CC_mutex);
|
pthread_mutex_lock(&KOMODO_CC_mutex);
|
||||||
bool out = eval->Dispatch(cond, tx, nIn);
|
bool out = eval->Dispatch(cond, tx, nIn);
|
||||||
pthread_mutex_unlock(&KOMODO_CC_mutex);
|
pthread_mutex_unlock(&KOMODO_CC_mutex);
|
||||||
//fprintf(stderr,"out %d vs %d isValid\n",(int32_t)out,(int32_t)eval->state.IsValid());
|
fprintf(stderr,"out %d vs %d isValid\n",(int32_t)out,(int32_t)eval->state.IsValid());
|
||||||
assert(eval->state.IsValid() == out);
|
assert(eval->state.IsValid() == out);
|
||||||
|
|
||||||
if (eval->state.IsValid()) return true;
|
if (eval->state.IsValid()) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user