|
|
@ -270,7 +270,7 @@ struct iguana_info *LP_coinfind(char *symbol) |
|
|
|
|
|
|
|
struct iguana_info *LP_coincreate(cJSON *item) |
|
|
|
{ |
|
|
|
struct iguana_info cdata,*coin=0; int32_t isPoS,longestchain = 1000000; uint16_t port; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name,*symbol,*assetname; |
|
|
|
struct iguana_info cdata,*coin=0; int32_t isPoS,longestchain = 1000000; uint16_t port; uint64_t txfee; double estimatedrate; uint8_t pubtype,p2shtype,wiftype; char *name=0,*symbol,*assetname=0; |
|
|
|
if ( (symbol= jstr(item,"coin")) != 0 && symbol[0] != 0 && strlen(symbol) < 16 && LP_coinfind(symbol) == 0 && (port= juint(item,"rpcport")) != 0 ) |
|
|
|
{ |
|
|
|
isPoS = jint(item,"isPoS"); |
|
|
@ -292,7 +292,13 @@ struct iguana_info *LP_coincreate(cJSON *item) |
|
|
|
coin = LP_coinadd(&cdata); |
|
|
|
} |
|
|
|
if ( coin != 0 && item != 0 ) |
|
|
|
coin->inactive = (strcmp("KMD",coin->symbol) == 0) ? 0 : !jint(item,"active"); |
|
|
|
{ |
|
|
|
if ( strcmp("KMD",coin->symbol) != 0 ) |
|
|
|
{ |
|
|
|
if ( IAMLP == 0 || assetname != name ) |
|
|
|
coin->inactive = !jint(item,"active"); |
|
|
|
} |
|
|
|
} |
|
|
|
return(0); |
|
|
|
} |
|
|
|
|
|
|
|