Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3eedaabb82
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 5
      iguana/exchanges/mm.c

2
iguana/exchanges/LP_nativeDEX.c

@ -766,8 +766,6 @@ void LPinit(uint16_t myport,uint16_t mypull,uint16_t mypub,double profitmargin,c
printf("couldnt get myipaddr or null mypeer.%p\n",mypeer);
exit(-1);
}
//curl --url "bitcoing54g44rpc:passgh6456h5word@127.0.0.1:8332" --data "{\"method\":\"getinfo\",\"params\":[]}"
// curl --url "bitcoinrp456454z4zhhc:passwg45hgz64g499ord@127.0.0.1:7771" --data "{\"method\":\"getinfo\",\"params\":[]}"
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)stats_rpcloop,(void *)&myport) != 0 )
{
printf("error launching stats rpcloop for port.%u\n",myport);

5
iguana/exchanges/mm.c

@ -814,11 +814,12 @@ int main(int argc, const char * argv[])
profitmargin = jdouble(retjson,"profitmargin");
if ( (passphrase= jstr(retjson,"passphrase")) == 0 )
passphrase = "test";
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_main,(void *)passphrase) != 0 )
if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_main,(void *)clonestr(passphrase)) != 0 )
{
printf("error launching LP_main %f\n",profitmargin);
exit(-1);
} getchar();
} else printf("launched.(%s)\n",passphrase);
getchar();
maxexposure = jdouble(retjson,"maxexposure");
incrratio = jdouble(retjson,"lotratio");
start_base = jdouble(retjson,"start_base");

Loading…
Cancel
Save