From e7479ef8aa4eb6a442a171eef1576a875398048f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 23:01:08 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 00085278d..eebe46667 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -491,7 +491,7 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) { char str[65],str2[65]; entropy = DiceGetEntropy(vinTx,'B'); - vcalc_sha256(0,(uint8_t *)&hash,entropy,32); + vcalc_sha256(0,(uint8_t *)&hash,(uint8_t *)&proof,32); fprintf(stderr,"calculated hentropy.%s\n",uint256_str(str,hash)); fprintf(stderr,"verify house entropy %s vs bettor %s\n",uint256_str(str,proof),uint256_str(str2,entropy)); winnings = DiceCalc(vinTx.vout[1].nValue,vinTx.vout[2].nValue,minbet,maxbet,maxodds,timeoutblocks,proof,entropy);