boost round robin rate
This commit is contained in:
@@ -606,10 +606,10 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
solutionTargetChecks.increment();
|
solutionTargetChecks.increment();
|
||||||
if ( UintToArith256(pblock->GetHash()) > hashTarget )
|
if ( UintToArith256(pblock->GetHash()) > hashTarget )
|
||||||
return false;
|
return false;
|
||||||
if ( Mining_start != 0 && time(NULL) < Mining_start+50 )
|
if ( Mining_start != 0 && time(NULL) < Mining_start+30 )
|
||||||
{
|
{
|
||||||
printf("Round robin diff sleep %d\n",(int32_t)(Mining_start+50-time(NULL)));
|
printf("Round robin diff sleep %d\n",(int32_t)(Mining_start+30-time(NULL)));
|
||||||
sleep(Mining_start+50-time(NULL));
|
sleep(Mining_start+30-time(NULL));
|
||||||
}
|
}
|
||||||
// Found a solution
|
// Found a solution
|
||||||
SetThreadPriority(THREAD_PRIORITY_NORMAL);
|
SetThreadPriority(THREAD_PRIORITY_NORMAL);
|
||||||
|
|||||||
@@ -966,7 +966,6 @@ static bool HTTPReq_JSONRPC(AcceptedConnection *conn,
|
|||||||
conn->stream() << HTTPError(HTTP_UNAUTHORIZED, false) << std::flush;
|
conn->stream() << HTTPError(HTTP_UNAUTHORIZED, false) << std::flush;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONRequest jreq;
|
JSONRequest jreq;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user