From 72a9613a4d8f0538c15b6df20ce1943f01a024b8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 1 Apr 2017 15:28:16 +0300 Subject: [PATCH] Test --- basilisk/basilisk.c | 10 +++++----- iguana/iguana_payments.c | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 2f0829dd1..b10ffc52c 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -48,28 +48,28 @@ cJSON *basilisk_utxosweep(struct supernet_info *myinfo,char *symbol,int64_t *sat item = jitem(array,i); if ( (value= SATOSHIDEN*jdouble(item,"amount")) != 0 || (value= SATOSHIDEN*jdouble(item,"value")) != 0 ) { - fprintf(stderr,"%.8f ",dstr(value)); + //fprintf(stderr,"%.8f ",dstr(value)); if ( value <= limit ) { - fprintf(stderr,"< "); + //fprintf(stderr,"< "); if ( utxos == 0 ) utxos = cJSON_CreateArray(); jaddi(utxos,jduplicate(item)); } else if ( value > biggest ) { - fprintf(stderr,"biggest! "); + //fprintf(stderr,"biggest! "); if ( biggestitem != 0 ) free_json(biggestitem); biggestitem = jduplicate(item); *satoshis = biggest = value; - } else fprintf(stderr,"> "); + } //else fprintf(stderr,"> "); } } free_json(array); if ( utxos == 0 && biggestitem != 0 ) { - printf("add biggest.(%s)\n",jprint(biggestitem,0)); + fprintf(stderr,"add biggest.(%s)\n",jprint(biggestitem,0)); jaddi(utxos,biggestitem); } } diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index cfe164a8a..f1a5a6948 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -554,7 +554,10 @@ char *iguana_calcutxorawtx(struct supernet_info *myinfo,struct iguana_info *coin for (i=0; i