Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f3c2533a7c
  1. 2
      iguana/SuperNET_keys.c
  2. 13
      iguana/iguana_exchanges.c

2
iguana/SuperNET_keys.c

@ -89,7 +89,7 @@ char *SuperNET_parsemainargs(struct supernet_info *myinfo,bits256 *wallethashp,b
} }
} }
//if ( exchanges == 0 ) //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)); printf("EXCHANGES.(%s)\n",jprint(exchanges,0));
if ( exchanges != 0 ) if ( exchanges != 0 )
exchanges777_init(myinfo,exchanges,0); exchanges777_init(myinfo,exchanges,0);

13
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 exchanges777_id(char *exchangestr)
{ {
int32_t i; int32_t i;
for (i=0; i<sizeof(Exchange_funcs)/sizeof(*Exchange_funcs); i++) if ( exchangestr != 0 )
{ {
//printf("%s ",Exchange_funcs[i]->name); for (i=0; i<sizeof(Exchange_funcs)/sizeof(*Exchange_funcs); i++)
if ( strcmp(exchangestr,Exchange_funcs[i]->name) == 0 ) {
return(i); //printf("%s ",Exchange_funcs[i]->name);
if ( strcmp(exchangestr,Exchange_funcs[i]->name) == 0 )
return(i);
}
//printf("cant find (%s)\n",exchangestr);
} }
//printf("cant find (%s)\n",exchangestr);
return(-1); return(-1);
} }

Loading…
Cancel
Save