From d2d3c766296c007135c2fc41e872e614e9656730 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Jul 2017 11:09:26 +0200 Subject: [PATCH] Test --- src/miner.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 1af9692a9..1b5722316 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -798,7 +798,9 @@ void static BitcoinMiner() if ( gpucount > j/2 ) { 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.; roundrobin_delay += ((delta * i) / 64) - delta; //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); } else if ( ASSETCHAINS_SYMBOL[0] != 0 ) - sleep(3); + { + sleep(rand() % 30); + } KOMODO_CHOSEN_ONE = 1; // Found a solution SetThreadPriority(THREAD_PRIORITY_NORMAL);