From 3e9c5a1b82bc70191cffe0c2587626b874229175 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 11 Feb 2017 21:11:03 +0200 Subject: [PATCH] test --- iguana/kmd_lookup.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index 5dc100509..30ab46223 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -111,7 +111,7 @@ int32_t kmd_transactionvin(struct iguana_info *coin,bits256 spendtxid,int32_t vi } return(0); } - char str[65]; printf("vin error %s vout.%d of %d vs ptr %p [%d] spent.%p\n",bits256_str(str,spendtxid),vout,ptr->numvouts,ptr,ptr!=0?ptr->numvouts:-1,spendptr); + char str[65]; printf("vin error %s vout.%d of %d vs ptr %p [%d] spent.%p\n",bits256_str(str,txid),vout,ptr->numvouts,ptr,ptr!=0?ptr->numvouts:-1,spendptr); return(-1); } @@ -166,7 +166,7 @@ struct kmd_transaction *kmd_transactionalloc(bits256 txid,int32_t height,uint32_ struct kmd_transaction *tx; tx = calloc(1,sizeof(*tx) + sizeof(struct kmd_voutinfo)*numvouts); tx->numvouts = numvouts; - tx->numvouts = numvins; + tx->numvins = numvins; tx->txid = txid; tx->height = height; tx->timestamp = timestamp; @@ -607,7 +607,6 @@ int32_t _kmd_bitcoinscan(struct iguana_info *coin) } else { - ptr->numvins = numvins; if ( coin->kmd_spendfp != 0 ) { fwrite(&txid,1,sizeof(txid),coin->kmd_spendfp);