This commit is contained in:
blackjok3r
2018-10-29 02:49:43 +08:00
parent 1889b058b6
commit 4b1061a8a2

View File

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