From 360039ba06e73b6795aec6a76857f5172d194efd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 11:38:43 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 4 ---- iguana/exchanges/LP_remember.c | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index e8efb2c5f..6dcdb2bb7 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -119,11 +119,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i 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 ) - { - printf("%s\ngetchar to continue\n",retstr); - getchar(); free(retstr); - } if ( amclient != 0 ) { while ( 1 ) diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index c58cc2ea5..bf9d34b82 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -50,7 +50,7 @@ void basilisk_dontforget(struct basilisk_swap *swap,struct basilisk_rawtx *rawtx LP_swap_coinaddr(swap,&swap->bobcoin,coinaddr,rawtx->txbytes,rawtx->I.datalen); if ( coinaddr[0] != 0 ) { - //LP_importaddress(swap->bobcoin.symbol,coinaddr); + LP_importaddress(swap->bobcoin.symbol,coinaddr); if ( rawtx == &swap->bobdeposit ) safecopy(swap->Bdeposit,coinaddr,sizeof(swap->Bdeposit)); else safecopy(swap->Bpayment,coinaddr,sizeof(swap->Bpayment)); @@ -72,7 +72,7 @@ void basilisk_dontforget(struct basilisk_swap *swap,struct basilisk_rawtx *rawtx if ( bits256_nonz(swap->I.pubAm) != 0 && bits256_nonz(swap->I.pubBn) != 0 ) { basilisk_alicescript(redeemscript,&len,script,0,coinaddr,swap->alicecoin.p2shtype,swap->I.pubAm,swap->I.pubBn); - //LP_importaddress(swap->alicecoin.symbol,coinaddr); + LP_importaddress(swap->alicecoin.symbol,coinaddr); fprintf(fp,",\"Apayment\":\"%s\"",coinaddr); } if ( rawtx->I.redeemlen > 0 )