diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index b6323eaef..f5c0e2791 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -170,7 +170,7 @@ void *dicefinish(void *_ptr) { char str[65],str2[65],name[32]; std::string res; int32_t i,result,duplicate=0; struct dicefinish_info *ptr; uint256 entropyused; ptr = (struct dicefinish_info *)_ptr; - sleep(3); // wait for bettxid to be in mempool + sleep(1); // wait for bettxid to be in mempool for (i=0; ibettxid ) { @@ -1242,6 +1242,8 @@ double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettx { mySenddicetransaction(res,entropyused,txid); n++; + if ( n >= 100 ) + break; } else error = res; } }