From c120c3e8d13cd65585e92965d8e4b3557b21fb42 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 3 Dec 2017 21:40:35 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 4 ++-- iguana/exchanges/LP_stats.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 9cbcdca45..e89db4ccd 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -319,7 +319,7 @@ int64_t LP_instantdex_credit(int32_t dispflag,char *coinaddr,int64_t satoshis,in int64_t LP_instantdex_creditcalc(struct iguana_info *coin,int32_t dispflag,bits256 txid,char *refaddr) { - cJSON *txjson,*vouts,*txobj,*item; int64_t satoshis=0,amount64; int32_t weeki,numvouts; char destaddr[64],p2shaddr[64]; + cJSON *txjson,*vouts,*txobj,*item; int64_t satoshis=0,amount64; int32_t weeki,numvouts; char destaddr[64],p2shaddr[64],str[65]; if ( (txjson= LP_gettx(coin->symbol,txid,0)) != 0 ) { // vout0 deposit, vout1 botsfee, vout2 smartaddress @@ -335,7 +335,7 @@ int64_t LP_instantdex_creditcalc(struct iguana_info *coin,int32_t dispflag,bits2 weeki = (amount64 % 10000); item = jitem(vouts,0); satoshis = LP_value_extract(item,0); - //printf("%s funded %.8f weeki.%d\n",destaddr,dstr(satoshis),weeki); + printf("%s %s funded %.8f weeki.%d (%s)\n",bits256_str(str,txid),destaddr,dstr(satoshis),weeki,jprint(item,0)); if ( LP_destaddr(p2shaddr,item) == 0 ) { if ( (txobj= LP_gettxout(coin->symbol,p2shaddr,txid,0)) != 0 ) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index 77e6500da..7d7ee1fba 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -518,7 +518,7 @@ cJSON *LP_swapstats_json(struct LP_swapstats *sp) char *LP_swapstatus_recv(cJSON *argjson) { - struct LP_swapstats *sp; char *statusstr; uint64_t aliceid; double qprice; struct LP_quoteinfo Q; int32_t methodind,RTflag; bits256 txid; char str[65]; + struct LP_swapstats *sp; char *statusstr; uint64_t aliceid; double qprice; struct LP_quoteinfo Q; int32_t methodind,RTflag; bits256 txid; //char str[65]; if ( (aliceid= j64bits(argjson,"aliceid")) == 0 ) return(clonestr("{\"error\":\"LP_swapstatus_recv null aliceid\"}")); if ( (sp= LP_swapstats_find(aliceid)) == 0 ) @@ -589,7 +589,7 @@ char *LP_swapstatus_recv(cJSON *argjson) char *LP_gettradestatus(uint64_t aliceid,uint32_t requestid,uint32_t quoteid) { struct LP_swapstats *sp; char *swapstr,*statusstr; cJSON *reqjson,*swapjson; bits256 zero; - printf("gettradestatus.(%llu)\n",(long long)aliceid); + //printf("gettradestatus.(%llu)\n",(long long)aliceid); if ( IAMLP != 0 ) { if ( (sp= LP_swapstats_find(aliceid)) != 0 )