Directly call longestchain()
This commit is contained in:
@@ -46,7 +46,7 @@ static bool fDaemon;
|
|||||||
extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
|
extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
|
||||||
void komodo_passport_iteration();
|
void komodo_passport_iteration();
|
||||||
uint64_t komodo_interestsum();
|
uint64_t komodo_interestsum();
|
||||||
uint64_t komodo_paxtotal();
|
int32_t komodo_longestchain();
|
||||||
|
|
||||||
void WaitForShutdown(boost::thread_group* threadGroup)
|
void WaitForShutdown(boost::thread_group* threadGroup)
|
||||||
{
|
{
|
||||||
@@ -63,8 +63,8 @@ void WaitForShutdown(boost::thread_group* threadGroup)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
komodo_interestsum();
|
komodo_interestsum();
|
||||||
komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain()
|
komodo_longestchain();
|
||||||
MilliSleep(10000);
|
MilliSleep(20000);
|
||||||
}
|
}
|
||||||
fShutdown = ShutdownRequested();
|
fShutdown = ShutdownRequested();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1340,7 +1340,7 @@ void komodo_passport_iteration()
|
|||||||
if ( komodo_chainactive_timestamp() > lastinterest )
|
if ( komodo_chainactive_timestamp() > lastinterest )
|
||||||
{
|
{
|
||||||
komodo_interestsum();
|
komodo_interestsum();
|
||||||
komodo_paxtotal(); // calls komodo_isrealtime(), which calls komodo_longestchain()
|
komodo_longestchain();
|
||||||
lastinterest = komodo_chainactive_timestamp();
|
lastinterest = komodo_chainactive_timestamp();
|
||||||
}
|
}
|
||||||
refsp = komodo_stateptr(symbol,dest);
|
refsp = komodo_stateptr(symbol,dest);
|
||||||
|
|||||||
Reference in New Issue
Block a user