From 415477886ab373e3eeb6de52dbbceb670afd6cfb Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 9 Jul 2017 22:49:28 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 286eaf9e3..45e96ec9e 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -565,6 +565,11 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch } else if ( value > txfee ) satoshis = value - txfee; else printf("unexpected small value %.8f vs txfee %.8f\n",dstr(value),dstr(txfee)); + if ( change < 6000 ) + { + satoshis += change; + change = 0; + } if ( destamountp != 0 ) *destamountp = satoshis; timestamp = (uint32_t)time(NULL);