remove prints

This commit is contained in:
blackjok3r
2018-10-29 11:18:34 +08:00
parent adbb327574
commit 05dc40eb3e

View File

@@ -560,7 +560,6 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx)
return eval->Invalid("sbits or fundingtxid mismatch for wlt"); return eval->Invalid("sbits or fundingtxid mismatch for wlt");
else if ( fundingPubKey != tx.vout[1].scriptPubKey ) else if ( fundingPubKey != tx.vout[1].scriptPubKey )
return eval->Invalid("tx.vout[1] != fundingPubKey for wlt"); return eval->Invalid("tx.vout[1] != fundingPubKey for wlt");
fprintf(stderr, "vout2.nvalue = %ld\n", vinTx.vout[2].nValue);
if ( funcid == 'L' ) if ( funcid == 'L' )
{ {
//vout.0: funding CC to entropy owner //vout.0: funding CC to entropy owner
@@ -579,8 +578,6 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx)
//vout.0: funding CC change to entropy owner //vout.0: funding CC change to entropy owner
//vout.2: normal output to bettor's address //vout.2: normal output to bettor's address
//vout.n-1: opreturn 'W' sbits fundingtxid hentropy proof //vout.n-1: opreturn 'W' sbits fundingtxid hentropy proof
fprintf(stderr, "tx fee: %ld\n",txfee);
usleep(5000);
odds = vinTx.vout[2].nValue - txfee; odds = vinTx.vout[2].nValue - txfee;
if ( ConstrainVout(tx.vout[0],1,cp->unspendableCCaddr,0) == 0 ) if ( ConstrainVout(tx.vout[0],1,cp->unspendableCCaddr,0) == 0 )
return eval->Invalid("vout[0] != inputs-txfee for win/timeout"); return eval->Invalid("vout[0] != inputs-txfee for win/timeout");