From f3916237387bff9700f4cc1b0d249d4032e06472 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 01:30:04 +0800 Subject: [PATCH] w --- src/cc/dice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index fa36051dc..14adc28d6 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -413,8 +413,7 @@ int32_t DiceIsWinner(uint256 &entropy,uint256 txid,CTransaction tx,CTransaction hentropy2 = DiceHashEntropy(entropy,vinTx.vin[0].prevout.hash); if ( hentropy == hentropy2 ) { - char *str; - fprintf(stderr, "%s\n",uint256_str(str,entropy)); + fprintf(stderr, "%s something \n",uint256_str(str2,entropy)); winnings = DiceCalc(tx.vout[1].nValue,tx.vout[2].nValue,minbet,maxbet,maxodds,timeoutblocks,entropy,bettorentropy); char str[65]; fprintf(stderr,"%s winnings %.8f bet %.8f at odds %d:1\n",uint256_str(str,tx.GetHash()),(double)winnings/COIN,(double)tx.vout[1].nValue/COIN,(int32_t)(tx.vout[2].nValue-10000)); //fprintf(stderr,"I am house entropy %.8f entropy.(%s) vs %s -> winnings %.8f\n",(double)vinTx.vout[0].nValue/COIN,uint256_str(str,entropy),uint256_str(str2,hash),(double)winnings/COIN);