From 4875678883ed1e26e5fa0c1fc9f55f30ac35f1ed Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Apr 2018 23:21:22 +0300 Subject: [PATCH] Fix --- src/bitcoind.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 2ada533f1..43fc6f848 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(); +uint64_t komodo_paxtotal(); 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_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain() + MilliSleep(10000); + } fShutdown = ShutdownRequested(); } if (threadGroup)