|
|
@ -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 |
|
|
|
{ |
|
|
|
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 ( IAMLP != 0 && coin->inactive != 0 ) |
|
|
|
printf("LPnode %s disabled %p vs %p\n",coin->symbol,assetname,name); |
|
|
|
} |
|
|
|
if ( coin->inactive != 0 ) |
|
|
|
printf("LPnode.%d %s disabled %p vs %p\n",IAMLP,coin->symbol,assetname,name); |
|
|
|
} else coin->inactive = 0; |
|
|
|
} |
|
|
|
return(0); |
|
|
|