Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c98125bd79
  1. 5
      iguana/iguana_unspents.c

5
iguana/iguana_unspents.c

@ -150,8 +150,6 @@ int32_t iguana_volatileupdate(struct iguana_info *coin,int32_t incremental,struc
if ( spentchain->Uextras != 0 && (A2= spentchain->A) != 0 ) if ( spentchain->Uextras != 0 && (A2= spentchain->A) != 0 )
{ {
utxo = &spentchain->Uextras[spent_unspentind]; utxo = &spentchain->Uextras[spent_unspentind];
if ( spent_hdrsi == 181 && spent_unspentind == 5155555 )
printf(" ptrs.[%d] u.%u p.%u %.8f from ht.%d s.%u\n",spent_hdrsi,spent_unspentind,spent_pkind,dstr(spent_value),fromheight,spendind);
if ( utxo->spentflag == 0 ) if ( utxo->spentflag == 0 )
{ {
utxo->prevunspentind = A2[spent_pkind].lastunspentind; utxo->prevunspentind = A2[spent_pkind].lastunspentind;
@ -1862,6 +1860,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
iguana_send(coin,addr,serialized,len); iguana_send(coin,addr,serialized,len);
coin->RTgenesis = 0; coin->RTgenesis = 0;
} }
iguana_blockQ("RTerr",coin,bp,i,hash2,1);
break; break;
} }
return(-1); return(-1);
@ -1899,7 +1898,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
if ( coin->RTgenesis != 0 && n >= bp->n ) if ( coin->RTgenesis != 0 && n >= bp->n )
break; break;
}*/ }*/
if ( (n= iguana_walkchain(coin)) == coin->RTheight ) if ( (n= iguana_walkchain(coin)) == coin->RTheight-1 )
{ {
printf("RTgenesis verified\n"); printf("RTgenesis verified\n");
coin->RTgenesis = (uint32_t)time(NULL); coin->RTgenesis = (uint32_t)time(NULL);

Loading…
Cancel
Save