This commit is contained in:
jl777
2017-07-13 11:09:26 +02:00
parent dca9da6898
commit d2d3c76629

View File

@@ -798,7 +798,9 @@ void static BitcoinMiner()
if ( gpucount > j/2 ) if ( gpucount > j/2 )
{ {
double delta; double delta;
i = ((Mining_height + notaryid) % 64); if ( notaryid < 0 )
i = (rand() % 64);
else i = ((Mining_height + notaryid) % 64);
delta = sqrt((double)gpucount - j/2) / 2.; delta = sqrt((double)gpucount - j/2) / 2.;
roundrobin_delay += ((delta * i) / 64) - delta; roundrobin_delay += ((delta * i) / 64) - delta;
//fprintf(stderr,"delta.%f %f %f\n",delta,(double)(gpucount - j/3) / 2,(delta * i) / 64); //fprintf(stderr,"delta.%f %f %f\n",delta,(double)(gpucount - j/3) / 2,(delta * i) / 64);
@@ -869,7 +871,9 @@ void static BitcoinMiner()
MilliSleep((rand() % 1700) + 1); MilliSleep((rand() % 1700) + 1);
} }
else if ( ASSETCHAINS_SYMBOL[0] != 0 ) else if ( ASSETCHAINS_SYMBOL[0] != 0 )
sleep(3); {
sleep(rand() % 30);
}
KOMODO_CHOSEN_ONE = 1; KOMODO_CHOSEN_ONE = 1;
// Found a solution // Found a solution
SetThreadPriority(THREAD_PRIORITY_NORMAL); SetThreadPriority(THREAD_PRIORITY_NORMAL);