SMART_CHAIN_SYMBOL is always defined

This commit is contained in:
Duke
2024-09-13 03:50:07 -04:00
parent 7e486538c9
commit 72c530d281

View File

@@ -74,30 +74,17 @@ void WaitForShutdown(boost::thread_group* threadGroup)
while (!fShutdown) while (!fShutdown)
{ {
//fprintf(stderr,"call passport iteration\n"); //hush_longestchain();
if ( SMART_CHAIN_SYMBOL[0] == 0 ) if ( ASSETCHAINS_CBOPRET != 0 )
{ hush_cbopretupdate(0);
if ( HUSH_NSPV_FULLNODE ) for (i=0; i<=ASSETCHAINS_BLOCKTIME/5; i++)
hush_passport_iteration(); {
for (i=0; i<10; i++) fShutdown = ShutdownRequested();
{ if ( fShutdown != 0 )
fShutdown = ShutdownRequested(); break;
if ( fShutdown != 0 ) MilliSleep(1000);
break; }
MilliSleep(1000);
}
} else {
//hush_longestchain();
if ( ASSETCHAINS_CBOPRET != 0 )
hush_cbopretupdate(0);
for (i=0; i<=ASSETCHAINS_BLOCKTIME/5; i++)
{
fShutdown = ShutdownRequested();
if ( fShutdown != 0 )
break;
MilliSleep(1000);
}
}
fShutdown = ShutdownRequested(); fShutdown = ShutdownRequested();
} }
//fprintf(stderr,"%s: fShutdown=%d\n", __FUNCTION__, fShutdown); //fprintf(stderr,"%s: fShutdown=%d\n", __FUNCTION__, fShutdown);