This commit is contained in:
jl777
2016-11-21 10:27:49 -03:00
parent 16db178d79
commit cfb7d1c275

View File

@@ -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 )