From 53cb74318a841d67fc1965a41dc778d2b0718546 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Feb 2017 11:00:23 +0200 Subject: [PATCH] test --- iguana/kmd_lookup.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index d645771ed..9aeab13f3 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -88,7 +88,7 @@ struct kmd_transactionhh *kmd_transaction(struct iguana_info *coin,bits256 txid) int32_t kmd_transactionvin(struct iguana_info *coin,bits256 spendtxid,int32_t vini,bits256 txid,int32_t vout) { - struct kmd_transactionhh *ptr,*spendptr; + struct kmd_transactionhh *ptr,*spendptr=0; if ( bits256_nonz(txid) == 0 || vout < 0 ) return(0); // coinbase must be if ( (ptr= kmd_transaction(coin,txid)) != 0 && vout < ptr->numvouts && (spendptr= kmd_transaction(coin,spendtxid)) != 0 ) @@ -98,6 +98,7 @@ int32_t kmd_transactionvin(struct iguana_info *coin,bits256 spendtxid,int32_t vi ptr->tx->vouts[vout].spendvini = vini; return(0); } + printf("vin error vout.%d vs ptr %p [%d] spent.%p\n",vout,ptr,ptr!=0?ptr->numvouts:-1,spendptr); return(-1); }