|
|
@ -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; |
|
|
|
} |
|
|
|