From 99e304630768bb9aa7203928eb5a53fc6758644e Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 May 2018 18:02:57 +0300 Subject: [PATCH] Test --- src/miner.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index f94ff1d04..6d0b29b33 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -984,22 +984,11 @@ void static BitcoinMiner() } if ( ASSETCHAINS_STAKED == 0 ) { - if ( NOTARY_PUBKEY33[0] != 0 ) + if ( NOTARY_PUBKEY33[0] != 0 && notaryid >= 0 ) { - MilliSleep((rand() % 2700) + 1000); + if ( (i= ((Mining_height + notaryid) % 64) / 8) > 0 ) + MilliSleep((rand() % (i * 1000)) + 500); } - /*if ( Mining_start != 0 && time(NULL) < Mining_start+roundrobin_delay ) - { - //printf("Round robin diff sleep %d\n",(int32_t)(Mining_start+roundrobin_delay-time(NULL))); - //int32_t nseconds = Mining_start+roundrobin_delay-time(NULL); - //if ( nseconds > 0 ) - // sleep(nseconds); - MilliSleep((rand() % 1700) + 1); - } - else if ( ASSETCHAINS_SYMBOL[0] != 0 ) - { - sleep(rand() % 30); - }*/ } else {