From 507520445b12e5f44cf6d07c36abfceabaa448ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Aug 2018 03:47:06 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 6de0e80dd..8fdf83615 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -366,6 +366,7 @@ int32_t DiceIsWinner(uint256 &entropy,uint256 txid,CTransaction tx,CTransaction //char str[65],str2[65]; if ( DiceIsmine(vinTx.vout[1].scriptPubKey) != 0 && vinTx.vout.size() > 0 && vinTx.vout[0].scriptPubKey.IsPayToCryptoCondition() != 0 ) { + fprintf(stderr,"inside diceiswinner\n"); if ( ((funcid= DecodeDiceOpRet(txid,vinTx.vout[vinTx.vout.size()-1].scriptPubKey,vinsbits,vinfundingtxid,hentropy,vinproof)) == 'E' || funcid == 'W' || funcid == 'L') && sbits == vinsbits && fundingtxid == vinfundingtxid ) { hentropy2 = DiceHashEntropy(entropy,vinTx.vin[0].prevout.hash); @@ -926,6 +927,7 @@ std::string DiceBetFinish(int32_t *resultp,uint64_t txfee,char *planstr,uint256 fprintf(stderr,"got bettor entropy\n"); if ( winlosetimeout == 0 || (iswin= DiceIsWinner(hentropyproof,bettxid,betTx,entropyTx,bettorentropy,sbits,minbet,maxbet,maxodds,timeoutblocks,fundingtxid)) != 0 ) { + fprintf(stderr,"inside if/else\n"); winlosetimeout = iswin; if ( iswin == winlosetimeout ) {