Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ef8e905567
  1. 4
      iguana/iguana_volatiles.c

4
iguana/iguana_volatiles.c

@ -86,7 +86,7 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t
hhacct->pval = pval; hhacct->pval = pval;
HASH_ADD_KEYPTR(hh,coin->accountstable,&hhacct->pval,sizeof(hhacct->pval),hhacct); HASH_ADD_KEYPTR(hh,coin->accountstable,&hhacct->pval,sizeof(hhacct->pval),hhacct);
} }
printf("create hhutxo.%p hhacct.%p from.%d\n",hhutxo,hhacct,fromheight); //printf("create hhutxo.%p hhacct.%p from.%d\n",hhutxo,hhacct,fromheight);
hhutxo->u.spentflag = 1; hhutxo->u.spentflag = 1;
hhutxo->u.lockedflag = 0; hhutxo->u.lockedflag = 0;
hhutxo->u.fromheight = fromheight; hhutxo->u.fromheight = fromheight;
@ -180,7 +180,7 @@ int32_t iguana_spentflag(struct supernet_info *myinfo,struct iguana_info *coin,i
*spentheightp = -1; *spentheightp = -1;
if ( coin->disableUTXO != 0 ) if ( coin->disableUTXO != 0 )
{ {
printf("skip spentflag when disabled\n"); //printf("skip spentflag when disabled\n");
return(0); return(0);
} }
if ( (rdata= ramchain->H.data) == 0 ) if ( (rdata= ramchain->H.data) == 0 )

Loading…
Cancel
Save