From 6762cc3bb80273403d65567dc7d8646b6258a345 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 7 Jul 2019 07:07:23 -1100 Subject: [PATCH] Debug vers --- src/komodo_nSPV_wallet.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_nSPV_wallet.h b/src/komodo_nSPV_wallet.h index 1666f7deb..25c844dc3 100644 --- a/src/komodo_nSPV_wallet.h +++ b/src/komodo_nSPV_wallet.h @@ -94,8 +94,9 @@ int32_t NSPV_gettransaction(int32_t vout,uint256 txid,int32_t height,CTransactio } else retval = -22; } else retval = -1; } - //fprintf(stderr,"NSPV_gettransaction retval would have been %d\n",retval); - return(retval); + if ( retval != 0 ) + fprintf(stderr,"NSPV_gettransaction retval would have been %d\n",retval); + return(retval*0); } int32_t NSPV_vinselect(int32_t *aboveip,int64_t *abovep,int32_t *belowip,int64_t *belowp,struct NSPV_utxoresp utxos[],int32_t numunspents,int64_t value)