diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 47dfa284a..19e59c534 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -79,7 +79,8 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t } return(0); } - //printf("utxoupdate spenthdrsi.%d pkind.%d %.8f from [%d:%d] spendind.%u\n",spent_hdrsi,spent_pkind,dstr(spent_value),fromheight/coin->chain->bundlesize,fromheight%coin->chain->bundlesize,spendind); + if ( spent_pkind == 1534811 ) + printf("utxoupdate spenthdrsi.%d pkind.%d %.8f from [%d:%d] spendind.%u\n",spent_hdrsi,spent_pkind,dstr(spent_value),fromheight/coin->chain->bundlesize,fromheight%coin->chain->bundlesize,spendind); if ( (hhutxo= iguana_hhutxofind(coin,ubuf,spent_hdrsi,spent_unspentind)) != 0 && hhutxo->u.spentflag != 0 ) { printf("hhutxo.%p spentflag.%d\n",hhutxo,hhutxo->u.spentflag); @@ -152,7 +153,7 @@ void iguana_volatilesalloc(struct iguana_info *coin,struct iguana_ramchain *ramc int32_t i; struct iguana_utxo *U2; struct iguana_account *A2; struct iguana_ramchaindata *rdata = 0; if ( ramchain != 0 && (rdata= ramchain->H.data) != 0 ) { - printf("volatilesalloc.[%d]\n",rdata->height/coin->chain->bundlesize); + //printf("volatilesalloc.[%d]\n",rdata->height/coin->chain->bundlesize); if ( ramchain->allocatedA == 0 ) { ramchain->A = calloc(sizeof(*ramchain->A),rdata->numpkinds + 16); @@ -168,8 +169,8 @@ void iguana_volatilesalloc(struct iguana_info *coin,struct iguana_ramchain *ramc if ( copyflag != 0 ) { A2 = (void *)((long)ramchain->debitsfileptr + sizeof(int32_t) + 2*sizeof(bits256)); - if ( ramchain->debitsfilesize != sizeof(int32_t) + 2*sizeof(bits256) + sizeof(*U2)*rdata->numpkinds ) - printf("A2 size mismatch %ld != %ld\n",ramchain->debitsfilesize,sizeof(int32_t) + 2*sizeof(bits256) + sizeof(*U2)*rdata->numpkinds); + if ( ramchain->debitsfilesize != sizeof(int32_t) + 2*sizeof(bits256) + sizeof(*A2)*rdata->numpkinds ) + printf("A2 size mismatch %ld != %ld\n",ramchain->debitsfilesize,sizeof(int32_t) + 2*sizeof(bits256) + sizeof(*A2)*rdata->numpkinds); for (i=0; inumpkinds; i++) ramchain->A[i] = A2[i]; }