This commit is contained in:
jl777
2016-11-08 13:03:24 -03:00
parent ec7ad5f657
commit c021b87142
2 changed files with 2 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
sleep(3); sleep(3);
} }
} }
KOMODO_INITDONE = (uint32_t)time(NULL); KOMODO_REALTIME = KOMODO_INITDONE = (uint32_t)time(NULL);
if ( pindex != 0 ) if ( pindex != 0 )
{ {
height = pindex->nHeight; height = pindex->nHeight;

View File

@@ -122,9 +122,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
if ( KOMODO_INITDONE == 0 || time(NULL) < KOMODO_INITDONE+60 || KOMODO_REALTIME == 0 ) if ( KOMODO_INITDONE == 0 || time(NULL) < KOMODO_INITDONE+60 || KOMODO_REALTIME == 0 )
{ {
fprintf(stderr,"INITDONE.%d RT.%d deposits %.8f\n",KOMODO_INITDONE,KOMODO_REALTIME,(double)deposits/COIN); fprintf(stderr,"INITDONE.%d RT.%d deposits %.8f\n",KOMODO_INITDONE,KOMODO_REALTIME,(double)deposits/COIN);
continue;
} }
if ( deposits != 0 ) else if ( deposits != 0 )
break; break;
sleep(10); sleep(10);
} }