From e63788fa663be3ec8512ec8a3929b57e3ced9a42 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Feb 2017 15:54:00 +0200 Subject: [PATCH] test --- iguana/kmd_lookup.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index f8ac3f8cf..cf5ebcc07 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -111,6 +111,7 @@ int32_t kmd_transactionvin(struct iguana_info *coin,bits256 spendtxid,int32_t vi void kmd_transactionvout(struct iguana_info *coin,struct kmd_transactionhh *ptr,int32_t vout,uint64_t amount,uint8_t type_rmd160[21],bits256 spendtxid,int32_t spendvini) { struct kmd_addresshh *addr; struct kmd_transaction *tx = 0; + printf("ht.%d VOUT %d %.8f\n",ptr->tx->height,vout,dstr(amount)); if ( vout < ptr->numvouts && (tx= ptr->tx) != 0 ) { tx->vouts[vout].spendtxid = spendtxid; @@ -190,15 +191,19 @@ FILE *kmd_txidinit(struct iguana_info *coin) if ( fread(&V,1,sizeof(V),fp) == sizeof(V) ) { kmd_transactionvout(coin,ptr,i,V.amount,V.type_rmd160,V.spendtxid,V.spendvini); - } else break; + } + else + { + printf("error loading vout.%d ht.%d\n",i,T.height); + break; + } } if ( i == T.numvouts ) { lastpos = ftell(fp); if ( T.height > coin->kmd_height ) coin->kmd_height = T.height; - } - else break; + } else break; } } else break; }