From 0700947997831a00b09b2d8a21bb086f358ec1c8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 1 Aug 2018 05:55:16 -1100 Subject: [PATCH] 0 --- src/cc/dice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index faed5f0de..1077c5d8a 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -899,7 +899,10 @@ std::string DiceWinLoseTimeout(int32_t *resultp,uint64_t txfee,char *planstr,uin CMutableTransaction mtx; CScript scriptPubKey,fundingPubKey; CTransaction betTx,entropyTx; uint256 hentropyproof,entropytxid,hashBlock,bettorentropy,entropy,hentropy; CPubKey mypk,dicepk,fundingpk; struct CCcontract_info *cp,C; int64_t inputs,CCchange=0,odds,fundsneeded,minbet,maxbet,maxodds,timeoutblocks; uint8_t funcid; int32_t iswin=0; uint64_t entropyval,sbits; *resultp = 0; if ( (cp= Diceinit(fundingPubKey,fundingtxid,&C,planstr,txfee,mypk,dicepk,sbits,minbet,maxbet,maxodds,timeoutblocks)) == 0 ) + { + fprintf(stderr,"Diceinit error\n"); return("0"); + } fundingpk = DiceFundingPk(fundingPubKey); if ( winlosetimeout != 0 ) {