From 030fce32a9401df4bb9dcc6ceba910b14e5c44b8 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 03:00:03 +0800 Subject: [PATCH] w --- src/cc/dice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 971b3bc57..868858519 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -578,8 +578,9 @@ 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; + fprintf(stderr, "vout value: %ld\n", vinTx.vout[2].nValue); + //odds = vinTx.vout[2].nValue - txfee; + odds = 1; if ( ConstrainVout(tx.vout[0],1,cp->unspendableCCaddr,0) == 0 ) return eval->Invalid("vout[0] != inputs-txfee for win/timeout"); else if ( tx.vout[2].scriptPubKey != vinTx.vout[2].scriptPubKey )