|
|
@ -502,14 +502,17 @@ THREE_STRINGS_AND_DOUBLE(tradebot,aveprice,comment,base,rel,basevolume) |
|
|
|
|
|
|
|
ZERO_ARGS(InstantDEX,allcoins) |
|
|
|
{ |
|
|
|
struct iguana_info *tmp; cJSON *notarychains,*basilisk,*virtual,*full,*retjson = cJSON_CreateObject(); |
|
|
|
struct iguana_info *tmp; cJSON *native,*notarychains,*basilisk,*virtual,*full,*retjson = cJSON_CreateObject(); |
|
|
|
full = cJSON_CreateArray(); |
|
|
|
native = cJSON_CreateArray(); |
|
|
|
basilisk = cJSON_CreateArray(); |
|
|
|
virtual = cJSON_CreateArray(); |
|
|
|
notarychains = cJSON_CreateArray(); |
|
|
|
HASH_ITER(hh,myinfo->allcoins,coin,tmp) |
|
|
|
{ |
|
|
|
if ( coin->virtualchain != 0 ) |
|
|
|
if ( coin->FULLNODE < 0 ) |
|
|
|
jaddistr(native,coin->symbol); |
|
|
|
else if ( coin->virtualchain != 0 ) |
|
|
|
jaddistr(virtual,coin->symbol); |
|
|
|
if ( coin->FULLNODE > 0 || coin->VALIDATENODE > 0 ) |
|
|
|
jaddistr(full,coin->symbol); |
|
|
@ -517,6 +520,7 @@ ZERO_ARGS(InstantDEX,allcoins) |
|
|
|
jaddistr(notarychains,coin->symbol); |
|
|
|
else jaddistr(basilisk,coin->symbol); |
|
|
|
} |
|
|
|
jadd(retjson,"native",native); |
|
|
|
jadd(retjson,"basilisk",basilisk); |
|
|
|
jadd(retjson,"full",full); |
|
|
|
jadd(retjson,"virtual",virtual); |
|
|
|