Limit dicestatus to 100 at a time
This commit is contained in:
@@ -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; i<MAX_ENTROPYUSED; i++)
|
||||
if ( bettxids[i] == ptr->bettxid )
|
||||
{
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user