diff --git a/src/komodo.h b/src/komodo.h index e2e30224d..3cb5bf2fb 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -366,7 +366,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) sleep(3); } } - KOMODO_INITDONE = (uint32_t)time(NULL); + KOMODO_REALTIME = KOMODO_INITDONE = (uint32_t)time(NULL); if ( pindex != 0 ) { height = pindex->nHeight; diff --git a/src/miner.cpp b/src/miner.cpp index e97b37ec3..223573140 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -122,9 +122,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) 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); - continue; } - if ( deposits != 0 ) + else if ( deposits != 0 ) break; sleep(10); }