From 417e9985e9d5636bd5c6c2e0b2c8de62a017d335 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Mar 2017 16:10:29 +0200 Subject: [PATCH] Test --- iguana/iguana_payments.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index a8b45faf2..6aca69045 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -553,13 +553,6 @@ char *iguana_calcutxorawtx(struct supernet_info *myinfo,struct iguana_info *coin { if ( (vins= iguana_RTinputsjson(myinfo,coin,&total,satoshis + txfee,unspents,num,maxmode)) != 0 ) { - if ( total < (satoshis + txfee) ) - { - free_json(vins); - free(unspents); - printf("insufficient total %.8f vs (%.8f + %.8f)\n",dstr(total),dstr(satoshis),dstr(txfee)); - return(0); - } if ( strcmp(coin->symbol,"KMD") == 0 ) { if ( (interests= iguana_interests(myinfo,coin,vins)) != 0 ) @@ -568,6 +561,13 @@ char *iguana_calcutxorawtx(struct supernet_info *myinfo,struct iguana_info *coin printf("boost total by interest %.8f\n",dstr(interests)); } } + if ( total < (satoshis + txfee) ) + { + free_json(vins); + free(unspents); + printf("insufficient total %.8f vs (%.8f + %.8f)\n",dstr(total),dstr(satoshis),dstr(txfee)); + return(0); + } if ( (change= (total - (satoshis + txfee))) > 10000 && (changeaddr == 0 || changeaddr[0] == 0) ) { printf("no changeaddr for %.8f\n",dstr(change));