From 53f6ead6e3f611afb932138f0d324b19dac89028 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 22:47:03 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index a366c1313..6b926b3b1 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -485,7 +485,8 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) } if ( iswin != 0 ) { - winnings = DiceCalc(vinTx.vout[1].nValue,vinTx.vout[2].nValue,minbet,maxbet,maxodds,timeoutblocks,proof,hash); + entropy = DiceGetEntropy(vinTx,'B'); + winnings = DiceCalc(vinTx.vout[1].nValue,vinTx.vout[2].nValue,minbet,maxbet,maxodds,timeoutblocks,proof,entropy); if ( (winnings == 0 && iswin > 0) || (winnings > 0 && iswin < 0) ) return eval->Invalid("DiceCalc mismatch for win/loss"); }