diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 2ada533f1..5c12cfa2f 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -45,6 +45,8 @@ static bool fDaemon; #define KOMODO_ASSETCHAIN_MAXLEN 65 extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; void komodo_passport_iteration(); +uint64_t komodo_interestsum(); +int32_t komodo_longestchain(); void WaitForShutdown(boost::thread_group* threadGroup) { @@ -57,7 +59,13 @@ void WaitForShutdown(boost::thread_group* threadGroup) { komodo_passport_iteration(); MilliSleep(10000); - } else MilliSleep(10000); + } + else + { + komodo_interestsum(); + komodo_longestchain(); + MilliSleep(20000); + } fShutdown = ShutdownRequested(); } if (threadGroup) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5819529c1..7eb5d9ab8 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1340,6 +1340,7 @@ void komodo_passport_iteration() if ( komodo_chainactive_timestamp() > lastinterest ) { komodo_interestsum(); + komodo_longestchain(); lastinterest = komodo_chainactive_timestamp(); } refsp = komodo_stateptr(symbol,dest); @@ -1468,7 +1469,7 @@ void komodo_passport_iteration() if ( sp != 0 && isrealtime == 0 ) refsp->RTbufs[0][2] = 0; } - komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain() + //komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain() refsp->RTmask |= RTmask; if ( expired == 0 && KOMODO_PASSPORT_INITDONE == 0 ) {