Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fdb53e5eb9
  1. 4
      iguana/iguana_unspents.c
  2. 2
      iguana/main.c

4
iguana/iguana_unspents.c

@ -336,7 +336,7 @@ struct iguana_txid *iguana_txidfind(struct iguana_info *coin,int32_t *heightp,st
if ( numhdrs < 0 )
return(0);
/*permutation = 0;
/*if ( permutation != 0 && permutation[0] == permutation[1] )
if ( permutation != 0 && permutation[0] == permutation[1] )
{
for (k=0; k<numhdrs; k++)
permutation[k] = numhdrs - 1 - k;
@ -365,7 +365,7 @@ struct iguana_txid *iguana_txidfind(struct iguana_info *coin,int32_t *heightp,st
{
kiters += (k+1);
if ( (ksum % 100000) == 0 )
printf("kiters.%llu/%llu %.1f\n",(long long)kiters,(long long)ksum,(double)kiters/ksum);
printf("kiters.%llu/%llu %.1f\n",(long long)kiters,(long long)ksum,(double)kiters/(1+ksum));
*heightp = bp->bundleheight + j;
//printf("found height.%d\n",*heightp);
*tx = T[txidind];

2
iguana/main.c

@ -382,7 +382,7 @@ void mainloop(struct supernet_info *myinfo)
}
if ( (bp= coin->current) != 0 && coin->stucktime != 0 && coin->isRT == 0 && coin->RTheight == 0 && (time(NULL) - coin->stucktime) > coin->MAXSTUCKTIME )
{
if ( bp->emitfinish == 0 )
if ( 0 && bp->emitfinish == 0 )
{
printf("%s is stuck too long, purging files for %d\n",coin->symbol,bp->hdrsi);
/*iguana_bundlepurgefiles(coin,bp);

Loading…
Cancel
Save