boost round robin rate

This commit is contained in:
jl777
2016-11-01 14:34:36 -03:00
parent 3bc31b8c78
commit da61ef214c
2 changed files with 3 additions and 4 deletions

View File

@@ -606,10 +606,10 @@ void static BitcoinMiner(CWallet *pwallet)
solutionTargetChecks.increment();
if ( UintToArith256(pblock->GetHash()) > hashTarget )
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)));
sleep(Mining_start+50-time(NULL));
printf("Round robin diff sleep %d\n",(int32_t)(Mining_start+30-time(NULL)));
sleep(Mining_start+30-time(NULL));
}
// Found a solution
SetThreadPriority(THREAD_PRIORITY_NORMAL);

View File

@@ -966,7 +966,6 @@ static bool HTTPReq_JSONRPC(AcceptedConnection *conn,
conn->stream() << HTTPError(HTTP_UNAUTHORIZED, false) << std::flush;
return false;
}
JSONRequest jreq;
try
{