From cfb7d1c2758ce251f6a719d291936307a93579df Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 21 Nov 2016 10:27:49 -0300 Subject: [PATCH] test --- src/komodo.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 8c1445bc6..745e5f57e 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -454,10 +454,13 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) komodo_stateupdate(pindex->nHeight,0,0,0,zero,0,0,0,0,-pindex->nHeight,pindex->nTime,0,0,0,0); } komodo_currentheight_set(chainActive.Tip()->nHeight); - while ( KOMODO_PASSPORT_INITDONE == 0 ) + if ( ASSETCHAINS_SYMBOL[0] != 0 ) { - fprintf(stderr,"komodo_connect.(%s) waiting for KOMODO_PASSPORT_INITDONE.%u\n",ASSETCHAINS_SYMBOL,KOMODO_PASSPORT_INITDONE); - sleep(3); + while ( KOMODO_PASSPORT_INITDONE == 0 ) + { + fprintf(stderr,"komodo_connect.(%s) waiting for KOMODO_PASSPORT_INITDONE.%u\n",ASSETCHAINS_SYMBOL,KOMODO_PASSPORT_INITDONE); + sleep(3); + } } KOMODO_INITDONE = (uint32_t)time(NULL); if ( pindex != 0 )