This commit is contained in:
jl777
2018-07-21 11:03:24 -11:00
parent bd92bb7202
commit 7c954648ca

View File

@@ -792,7 +792,7 @@ std::string FillBuyOffer(uint64_t txfee,uint256 assetid,uint256 bidtxid,uint256
{ {
mtx.vout.push_back(MakeAssetsVout(filltx.vout[fillvout].nValue - fillamount,mypk)); mtx.vout.push_back(MakeAssetsVout(filltx.vout[fillvout].nValue - fillamount,mypk));
} }
fprintf(stderr,"remaining %llu -> origpubkey\n"); fprintf(stderr,"remaining %llu -> origpubkey\n",(long long)remaining_required);
return(FinalizeCCTx(EVAL_ASSETS,mtx,mypk,txfee,EncodeOpRet('B',assetid,zeroid,remaining_required,origpubkey))); return(FinalizeCCTx(EVAL_ASSETS,mtx,mypk,txfee,EncodeOpRet('B',assetid,zeroid,remaining_required,origpubkey)));
} else fprintf(stderr,"filltx wasnt for assetid\n"); } else fprintf(stderr,"filltx wasnt for assetid\n");
} }
@@ -907,6 +907,7 @@ bool AssetValidate(Eval* eval,CTransaction &tx,int32_t numvouts,uint8_t funcid,u
return eval->Invalid("illegal asset vin0"); return eval->Invalid("illegal asset vin0");
if ( funcid != 'c' && assetid == zero ) if ( funcid != 'c' && assetid == zero )
return eval->Invalid("illegal assetid"); return eval->Invalid("illegal assetid");
fprintf(stderr,"switch\n");
switch ( funcid ) switch ( funcid )
{ {
case 'c': // create wont be called to be verified as it has no CC inputs case 'c': // create wont be called to be verified as it has no CC inputs