diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 63adecece..90dcde868 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -42,8 +42,11 @@ void WaitForShutdown(boost::thread_group* threadGroup) while (!fShutdown) { //fprintf(stderr,"call passport iteration\n"); - MilliSleep(10000); - komodo_passport_iteration(); + if ( ASSETCHAINS_SYMBOL[0] == 0 ) + { + MilliSleep(10000); + komodo_passport_iteration(); + } fShutdown = ShutdownRequested(); } if (threadGroup) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index f40ac59e7..628522a5d 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -727,8 +727,8 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } while ( KOMODO_PASSPORT_INITDONE == 0 ) { - fprintf(stderr,"."); - sleep(3); + komodo_passport_iteration(); + //sleep(3); } if ( KOMODO_PASSPORT_INITDONE == 0 ) // komodo_isrealtime(&ht) == 0 || init time already in DB return(0);