From 4505bbf3dd7e5d9336ea7607ce20f9e4e115a69b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 26 Jul 2017 12:54:22 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 6e22b1af5..fc7f65b5a 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -855,14 +855,11 @@ 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) + 100000; - else - { - if ( depositval < LP_MINSIZE_TXFEEMULT*txfee ) - continue; - targetval = (depositval / 9) * 8 + 100000; - } - printf("iambob.%d i.%d %.8f target %.8f\n",iambob,i,dstr(depositval),dstr(targetval)); + targetval = (depositval / 776) + txfee; + else targetval = (depositval / 9) * 8 + txfee; + if ( depositval < LP_MINSIZE_TXFEEMULT*txfee && targetval < LP_MINSIZE_TXFEEMULT*txfee ) + continue; + //printf("iambob.%d i.%d %.8f target %.8f\n",iambob,i,dstr(depositval),dstr(targetval)); i = -1; if ( iambob != 0 ) {