From c021b871428d6feb080a8b0bcc4cd890e56f7ff0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 Nov 2016 13:03:24 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- src/miner.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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); }