From 2ad48da3429b20b452aaf7d10ef85332e50a8861 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 11 Mar 2017 21:15:26 +0200 Subject: [PATCH] Test --- basilisk/basilisk_bitcoin.c | 6 +++--- iguana/iguana_payments.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/basilisk/basilisk_bitcoin.c b/basilisk/basilisk_bitcoin.c index 375371d9e..22ec358d1 100755 --- a/basilisk/basilisk_bitcoin.c +++ b/basilisk/basilisk_bitcoin.c @@ -759,11 +759,11 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi amount = jdouble(valsobj,"value") * SATOSHIDEN; if ( (txfee= j64bits(valsobj,"txfee")) == 0 ) { - if ( strcmp(coin->symbol,"BTC") != 0 ) + //if ( strcmp(coin->symbol,"BTC") != 0 ) { txfee = coin->chain->txfee; - if ( txfee == 0 ) - txfee = 10000; + if ( txfee < 50000 ) + txfee = 50000; } } spendscriptstr = jstr(valsobj,"spendscript"); diff --git a/iguana/iguana_payments.c b/iguana/iguana_payments.c index 8cdb158b9..516bcaf0a 100755 --- a/iguana/iguana_payments.c +++ b/iguana/iguana_payments.c @@ -426,7 +426,7 @@ char *iguana_calcrawtx(struct supernet_info *myinfo,struct iguana_info *coin,cJS coinaddr = jstri(addresses,i); if ( (array= basilisk_unspents(myinfo,coin,coinaddr)) != 0 ) { - //printf("unspents.(%s) %s\n",coinaddr,jprint(array,0)); + printf("unspents.(%s) %s\n",coinaddr,jprint(array,0)); if ( (m= cJSON_GetArraySize(array)) > 0 ) { for (j=0; j= satoshis+txfee ) { if ( (vins= iguana_RTinputsjson(myinfo,coin,&total,satoshis + txfee,unspents,num,maxmode)) != 0 )