|
@ -698,7 +698,7 @@ void LP_initcoins(void *ctx,int32_t pubsock,cJSON *coins) |
|
|
int32_t i,n,notarized; cJSON *item; char *symbol; struct iguana_info *coin; |
|
|
int32_t i,n,notarized; cJSON *item; char *symbol; struct iguana_info *coin; |
|
|
for (i=0; i<sizeof(activecoins)/sizeof(*activecoins); i++) |
|
|
for (i=0; i<sizeof(activecoins)/sizeof(*activecoins); i++) |
|
|
{ |
|
|
{ |
|
|
printf("%s ",activecoins[i]); |
|
|
printf("%s, ",activecoins[i]); |
|
|
LP_coinfind(activecoins[i]); |
|
|
LP_coinfind(activecoins[i]); |
|
|
LP_priceinfoadd(activecoins[i]); |
|
|
LP_priceinfoadd(activecoins[i]); |
|
|
if ( (coin= LP_coinfind(activecoins[i])) != 0 ) |
|
|
if ( (coin= LP_coinfind(activecoins[i])) != 0 ) |
|
@ -725,7 +725,7 @@ void LP_initcoins(void *ctx,int32_t pubsock,cJSON *coins) |
|
|
item = jitem(coins,i); |
|
|
item = jitem(coins,i); |
|
|
if ( (symbol= jstr(item,"coin")) != 0 ) |
|
|
if ( (symbol= jstr(item,"coin")) != 0 ) |
|
|
{ |
|
|
{ |
|
|
printf("%s ",jstr(item,"coin")); |
|
|
printf("%s, ",jstr(item,"coin")); |
|
|
LP_coincreate(item); |
|
|
LP_coincreate(item); |
|
|
LP_priceinfoadd(jstr(item,"coin")); |
|
|
LP_priceinfoadd(jstr(item,"coin")); |
|
|
if ( (coin= LP_coinfind(symbol)) != 0 ) |
|
|
if ( (coin= LP_coinfind(symbol)) != 0 ) |
|
@ -738,6 +738,11 @@ void LP_initcoins(void *ctx,int32_t pubsock,cJSON *coins) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
for (i=0; i<n; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
item = jitem(coins,i); |
|
|
|
|
|
printf("%s, ",jstr(item,"coin")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
printf("privkey updates\n"); |
|
|
printf("privkey updates\n"); |
|
|
} |
|
|
} |
|
|