Browse Source

Test

etomic
jl777 8 years ago
parent
commit
8a49110bb6
  1. 13
      iguana/exchanges/LP_coins.c

13
iguana/exchanges/LP_coins.c

@ -297,11 +297,16 @@ struct iguana_info *LP_coincreate(cJSON *item)
{
if ( strcmp("KMD",coin->symbol) != 0 )
{
if ( IAMLP == 0 || assetname != name || (strcmp("ZEC",coin->symbol) != 0 && strcmp("HUSH",coin->symbol) != 0) )
if ( jobj(item,"active") != 0 )
coin->inactive = !jint(item,"active");
else coin->inactive = 0;
if ( IAMLP != 0 && coin->inactive != 0 )
printf("LPnode %s disabled %p vs %p\n",coin->symbol,assetname,name);
else
{
if ( IAMLP == 0 || assetname != name || (strcmp("ZEC",coin->symbol) != 0 && strcmp("HUSH",coin->symbol) != 0) )
coin->inactive = (uint32_t)time(NULL);
else coin->inactive = 0;
}
if ( coin->inactive != 0 )
printf("LPnode.%d %s disabled %p vs %p\n",IAMLP,coin->symbol,assetname,name);
} else coin->inactive = 0;
}
return(0);

Loading…
Cancel
Save