From dd085a31664814a154b897d3cc4b426a01aab11d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 11 Jun 2017 11:24:03 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 5 +++++ iguana/exchanges/LP_rpc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 594ed3d29..8142583b0 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -219,10 +219,14 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in LP_priceinfoadd(jstr(item,"coin")); } } + printf("update alice\n"); LP_privkey_updates(pubsock,passphrase,0); + printf("update bob\n"); LP_privkey_updates(pubsock,passphrase,1); + printf("update swaps\n"); if ( (retstr= basilisk_swaplist()) != 0 ) free(retstr); + printf("update peers\n"); HASH_ITER(hh,LP_peerinfos,peer,tmp) { if ( strcmp(peer->ipaddr,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1") != 0 ) @@ -231,6 +235,7 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in LP_utxosquery(mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin); } } + printf("mainloop\n"); if ( IAMLP == 0 ) { while ( 1 ) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index b97409744..a2faa85c2 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -89,7 +89,7 @@ cJSON *bitcoin_json(struct iguana_info *coin,char *method,char *params) } //usleep(1000); //printf("dpow_gettxout.(%s)\n",retstr); - } + } else printf("bitcoin_json cant talk to NULL coin\n"); return(retjson); }