Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f3c2533a7c
  1. 2
      iguana/SuperNET_keys.c
  2. 3
      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 )
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);

3
iguana/iguana_exchanges.c

@ -940,6 +940,8 @@ char *exchanges777_Qrequest(struct exchange_info *exchange,int32_t func,char *ba
int32_t exchanges777_id(char *exchangestr)
{
int32_t i;
if ( exchangestr != 0 )
{
for (i=0; i<sizeof(Exchange_funcs)/sizeof(*Exchange_funcs); i++)
{
//printf("%s ",Exchange_funcs[i]->name);
@ -947,6 +949,7 @@ int32_t exchanges777_id(char *exchangestr)
return(i);
}
//printf("cant find (%s)\n",exchangestr);
}
return(-1);
}

Loading…
Cancel
Save