From 3eedaabb82eedca191a6baf3867fed377c0041f4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 29 May 2017 14:47:33 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 2 -- iguana/exchanges/mm.c | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index e97888a76..a4c3502fb 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/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); diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index f75f708f6..3df00e582 100644 --- a/iguana/exchanges/mm.c +++ b/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");