From b0becd6e7c764c0e7cec3f12551b326a62f2599f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Aug 2018 23:32:03 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index c46851919..02eb99a58 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -911,7 +911,7 @@ std::string DiceBetFinish(int32_t *resultp,uint64_t txfee,char *planstr,uint256 scriptPubKey = CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG; if ( scriptPubKey != fundingPubKey ) { - fprintf(stderr,"only dice fund creator can submit winner or loser\n"); + //fprintf(stderr,"only dice fund creator can submit winner or loser\n"); winlosetimeout = 0; } } @@ -925,7 +925,8 @@ std::string DiceBetFinish(int32_t *resultp,uint64_t txfee,char *planstr,uint256 bettorentropy = DiceGetEntropy(betTx,'B'); if ( winlosetimeout == 0 || (iswin= DiceIsWinner(hentropyproof,bettxid,betTx,entropyTx,bettorentropy,sbits,minbet,maxbet,maxodds,timeoutblocks,fundingtxid)) != 0 ) { - winlosetimeout = iswin; + if ( winlosetimeout != 0 ) + winlosetimeout = iswin; if ( iswin == winlosetimeout ) { if ( myIsutxo_spentinmempool(bettxid,0) != 0 || myIsutxo_spentinmempool(bettxid,1) != 0 ) @@ -941,7 +942,6 @@ std::string DiceBetFinish(int32_t *resultp,uint64_t txfee,char *planstr,uint256 funcid = 'T'; if ( DiceVerifyTimeout(betTx,timeoutblocks) == 0 ) // hasnt timed out yet { - fprintf(stderr,"timeout is not supported yet\n"); return("0"); } else