From 1e1893d8f1cccbe5db2acb5c66eed9791381fe9e Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 19 Mar 2017 18:19:12 +0200 Subject: [PATCH] Test --- src/bitcoind.cpp | 7 +++++-- src/komodo_gateway.h | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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);