From ec50b407a683347267b302ae1bb8f8042422bcc7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 21 Apr 2016 01:05:37 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index b8bc02ed0..8ab148574 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -30,7 +30,7 @@ struct iguana_hhutxo *iguana_hhutxofind(struct iguana_info *coin,uint64_t uval) struct iguana_hhaccount *iguana_hhaccountfind(struct iguana_info *coin,uint64_t pval) { struct iguana_hhaccount *hhacct; - HASH_FIND(hh,coin->utxotable,&pval,sizeof(pval),hhacct); + HASH_FIND(hh,coin->accountstable,&pval,sizeof(pval),hhacct); return(hhacct); } @@ -87,7 +87,6 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t memset(hhutxo,0,sizeof(*hhutxo)); hhutxo->uval = uval; HASH_ADD_KEYPTR(hh,coin->utxotable,&hhutxo->uval,sizeof(hhutxo->uval),hhutxo); - //HASH_ADD(hh,coin->utxotable,uval,sizeof(uval),hhutxo); if ( (hhacct= iguana_hhaccountfind(coin,pval)) == 0 ) { if ( numHHACCT+1 >= maxHHACCT ) @@ -99,7 +98,6 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t memset(hhacct,0,sizeof(*hhacct)); hhacct->pval = pval; HASH_ADD_KEYPTR(hh,coin->accountstable,&hhacct->pval,sizeof(hhacct->pval),hhacct); - //HASH_ADD(hh,coin->accountstable,pval,sizeof(pval),hhacct); } //printf("create hhutxo.%p hhacct.%p from.%d\n",hhutxo,hhacct,fromheight); hhutxo->u.spentflag = 1;