From 6ade8b6618c6d93e9884337a281278c200a9a4e3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Jun 2017 22:04:31 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 67fb646c0..059d07cf5 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -123,13 +123,16 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i } } LP_privkey_updates(mypeer,pubsock,passphrase,amclient); + if ( (retstr= basilisk_swaplist()) != 0 ) + free(retstr); HASH_ITER(hh,LP_peerinfos,peer,tmp) { if ( strcmp(peer->ipaddr,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1") != 0 ) + { + printf("query utxo from %s\n",peer->ipaddr); LP_utxosquery(0,mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin); + } } - if ( (retstr= basilisk_swaplist()) != 0 ) - free(retstr); if ( amclient != 0 ) { while ( 1 )