jl777 7 years ago
parent
commit
b865f27975
  1. 9
      iguana/exchanges/LP_nativeDEX.c

9
iguana/exchanges/LP_nativeDEX.c

@ -519,7 +519,7 @@ void LP_coinsloop(void *_coins)
{ {
if ( coins[0] != 0 && strcmp(coins,coin->symbol) != 0 ) if ( coins[0] != 0 && strcmp(coins,coin->symbol) != 0 )
continue; continue;
else if ( strcmp("BTC",coin->symbol) == 0 ) else if ( strcmp("BTC",coin->symbol) == 0 || strcmp("KMD",coin->symbol) == 0 )
continue; continue;
memset(&zero,0,sizeof(zero)); memset(&zero,0,sizeof(zero));
if ( coin->inactive != 0 ) if ( coin->inactive != 0 )
@ -537,7 +537,7 @@ void LP_coinsloop(void *_coins)
} }
if ( coin->lastscanht == coin->longestchain+1 ) if ( coin->lastscanht == coin->longestchain+1 )
{ {
printf("%s lastscanht.%d is longest.%d + 1\n",coin->symbol,coin->lastscanht,coin->longestchain); //printf("%s lastscanht.%d is longest.%d + 1\n",coin->symbol,coin->lastscanht,coin->longestchain);
continue; continue;
} }
else if ( coin->lastscanht > coin->longestchain+1 ) else if ( coin->lastscanht > coin->longestchain+1 )
@ -959,6 +959,11 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
printf("error launching BTC LP_coinsloop for port.%u\n",myport); printf("error launching BTC LP_coinsloop for port.%u\n",myport);
exit(-1); exit(-1);
} }
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_coinsloop,(void *)"KMD") != 0 )
{
printf("error launching KMD LP_coinsloop for port.%u\n",myport);
exit(-1);
}
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_pubkeysloop,(void *)myipaddr) != 0 ) if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_pubkeysloop,(void *)myipaddr) != 0 )
{ {
printf("error launching LP_pubkeysloop for ctx.%p\n",ctx); printf("error launching LP_pubkeysloop for ctx.%p\n",ctx);

Loading…
Cancel
Save