From 66d8c21ece9d0ec27ff65cc5b4f37cd7107792bb Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 26 Jul 2017 20:45:42 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 02979ccdb..05bce108a 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -317,7 +317,7 @@ int32_t LP_iseligible(uint64_t *valp,uint64_t *val2p,int32_t iambob,char *symbol } // else printf("no val2\n"); } // char str[65],str2[65]; printf("spent.%d %s txid or value %.8f < %.8f or val2 %.8f < %.8f, %s/v%d %s/v%d or < 10x txfee %.8f\n",iambob,symbol,dstr(val),dstr(satoshis),dstr(val2),dstr(threshold),bits256_str(str,txid),vout,bits256_str(str2,txid2),vout2,dstr(txfee)); - /*for (iter=0; iter<2; iter++) + for (iter=0; iter<2; iter++) { if ( (utxo= LP_utxofind(iter,txid,vout)) != 0 ) { @@ -343,7 +343,7 @@ int32_t LP_iseligible(uint64_t *valp,uint64_t *val2p,int32_t iambob,char *symbol if ( utxo->T.spentflag == 0 ) utxo->T.spentflag = (uint32_t)time(NULL); } - }*/ + } *valp = val; *val2p = val2; return(0); @@ -855,9 +855,9 @@ uint64_t LP_privkey_init(int32_t mypubsock,struct iguana_info *coin,bits256 mypr depositval = values[i]; values[i] = 0, used++; if ( iambob == 0 ) - targetval = (depositval / 776) + 2*txfee; + targetval = (depositval / 776) + txfee; else targetval = (depositval / 9) * 8 + 2*txfee; - if ( depositval < (1+LP_MINSIZE_TXFEEMULT)*txfee && targetval < (1+LP_MINSIZE_TXFEEMULT)*txfee ) + if ( depositval < (1+LP_MINSIZE_TXFEEMULT)*txfee ) continue; printf("iambob.%d i.%d %.8f target %.8f\n",iambob,i,dstr(depositval),dstr(targetval)); i = -1;