Browse Source

Test

etomic
jl777 8 years ago
parent
commit
d302c018de
  1. 4
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_nativeDEX.c

@ -600,6 +600,7 @@ struct iguana_info *LP_coinfind(char *symbol)
for (i=0; i<LP_numcoins; i++)
if ( strcmp(LP_coins[i].symbol,symbol) == 0 )
return(&LP_coins[i]);
memset(&cdata,0,sizeof(cdata));
coin = &cdata;
safecopy(cdata.symbol,symbol,sizeof(cdata.symbol));
port = LP_rpcport(symbol,10,&magic);
@ -767,9 +768,6 @@ void LPinit(uint16_t myport,uint16_t mypull,uint16_t mypub,double profitmargin)
exit(-1);
}
LP_coinfind("BTC"); LP_coinfind("LTC"); LP_coinfind("KMD"); LP_coinfind("USD"); LP_coinfind("REVS"); LP_coinfind("JUMBLR");
printf("%s\n",jprint(LP_getinfo("BTC"),1));
printf("%s\n",jprint(LP_getinfo("KMD"),1));
LP_privkey_init(mypeer,pubsock,"BTC","test","");
LP_privkey_init(mypeer,pubsock,"KMD","test","");
printf("utxos.(%s)\n",LP_utxos(mypeer,"",10000));

Loading…
Cancel
Save