From b32a9f1a5f0065e878892d9550c96c61fd2f65e7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Apr 2018 23:30:27 +0300 Subject: [PATCH] Directly call longestchain() --- src/bitcoind.cpp | 6 +++--- src/komodo_gateway.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 43fc6f848..5c12cfa2f 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -46,7 +46,7 @@ static bool fDaemon; extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; void komodo_passport_iteration(); uint64_t komodo_interestsum(); -uint64_t komodo_paxtotal(); +int32_t komodo_longestchain(); void WaitForShutdown(boost::thread_group* threadGroup) { @@ -63,8 +63,8 @@ void WaitForShutdown(boost::thread_group* threadGroup) else { komodo_interestsum(); - komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain() - MilliSleep(10000); + komodo_longestchain(); + MilliSleep(20000); } fShutdown = ShutdownRequested(); } diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 677fca916..7eb5d9ab8 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1340,7 +1340,7 @@ void komodo_passport_iteration() if ( komodo_chainactive_timestamp() > lastinterest ) { komodo_interestsum(); - komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain() + komodo_longestchain(); lastinterest = komodo_chainactive_timestamp(); } refsp = komodo_stateptr(symbol,dest);