From 22a613b99a57a3d9e3bae5c14122232b6ecf7a27 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 01:19:58 +0800 Subject: [PATCH] try --- src/cc/dice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 1643d8ad5..3f1b3e903 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -413,6 +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[65]; printf("%s\n",uint256_str(str,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));