From 718b7a146314d6c19702c382170d6c29aff04e51 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Oct 2017 05:25:13 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 2 ++ iguana/exchanges/LP_remember.c | 6 +++--- iguana/exchanges/LP_transaction.c | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 37176a928..fcf10404b 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -521,6 +521,8 @@ void LP_coinsloop(void *_coins) continue; else if ( strcmp("BTC",coin->symbol) == 0 || strcmp("KMD",coin->symbol) == 0 ) continue; + if ( coins[0] != 0 ) + printf("%s loop\n",coins); memset(&zero,0,sizeof(zero)); if ( coin->inactive != 0 ) continue; diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index 979e44a35..778da68f4 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -670,7 +670,7 @@ int32_t LP_refht_update(char *symbol,bits256 txid) int32_t LP_swap_load(struct LP_swap_remember *rswap) { - int32_t i,needflag,addflag; long fsize; char fname[1024],str[65],*fstr,*symbol,*rstr; cJSON *txobj,*sentobj,*fileobj; bits256 txid,checktxid; uint64_t value; + int32_t i,needflag,addflag; long fsize; char fname[1024],*fstr,*symbol,*rstr; cJSON *txobj,*sentobj,*fileobj; bits256 txid,checktxid; uint64_t value; rswap->iambob = -1; sprintf(fname,"%s/SWAPS/%u-%u.finished",GLOBAL_DBDIR,rswap->requestid,rswap->quoteid), OS_compatible_path(fname); if ( (fstr= OS_filestr(&fsize,fname)) != 0 ) @@ -767,7 +767,7 @@ int32_t LP_swap_load(struct LP_swap_remember *rswap) } free_json(sentobj); } - printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value)); + //printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value)); } } } //else printf("no symbol\n"); @@ -1089,7 +1089,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti for (i=0; i 0 ) - printf("spend of %s/v%d detected\n",bits256_str(str,utxotxid),vout); + { + //printf("spend of %s/v%d detected\n",bits256_str(str,utxotxid),vout); + } else if ( 0 && (coin= LP_coinfind(symbol)) != 0 && coin->electrum == 0 ) { if ( (retjson= LP_gettxout(symbol,coinaddr,utxotxid,vout)) == 0 )