From f3c2533a7cf0daabe9f4a3f3bc8534cc48a480d2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Jul 2016 18:15:18 -0300 Subject: [PATCH] test --- iguana/SuperNET_keys.c | 2 +- iguana/iguana_exchanges.c | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/iguana/SuperNET_keys.c b/iguana/SuperNET_keys.c index 629185a55..51be5b14a 100755 --- a/iguana/SuperNET_keys.c +++ b/iguana/SuperNET_keys.c @@ -89,7 +89,7 @@ char *SuperNET_parsemainargs(struct supernet_info *myinfo,bits256 *wallethashp,b } } //if ( exchanges == 0 ) - exchanges = cJSON_Parse("[\"poloniex\", \"bittrex\", \"btc38\"]"); + exchanges = cJSON_Parse("[{\"name\":\"poloniex\"}, {\"name\":\"bittrex\"}, {\"name\":\"btc38\"}]"); printf("EXCHANGES.(%s)\n",jprint(exchanges,0)); if ( exchanges != 0 ) exchanges777_init(myinfo,exchanges,0); diff --git a/iguana/iguana_exchanges.c b/iguana/iguana_exchanges.c index 50803964b..5a2f0620e 100755 --- a/iguana/iguana_exchanges.c +++ b/iguana/iguana_exchanges.c @@ -940,13 +940,16 @@ char *exchanges777_Qrequest(struct exchange_info *exchange,int32_t func,char *ba int32_t exchanges777_id(char *exchangestr) { int32_t i; - for (i=0; iname); - if ( strcmp(exchangestr,Exchange_funcs[i]->name) == 0 ) - return(i); + for (i=0; iname); + if ( strcmp(exchangestr,Exchange_funcs[i]->name) == 0 ) + return(i); + } + //printf("cant find (%s)\n",exchangestr); } - //printf("cant find (%s)\n",exchangestr); return(-1); }