Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
738cd15455
  1. 4
      iguana/iguana_bundles.c

4
iguana/iguana_bundles.c

@ -1152,7 +1152,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
}
if ( now > bp->issued[j]+60 || (rand() % 100) == 0 )
{
fprintf(stderr,"-[%d:%d].%d ",bp->hdrsi,j,now-bp->issued[j]);
//fprintf(stderr,"-[%d:%d].%d ",bp->hdrsi,j,now-bp->issued[j]);
struct iguana_peer *addr; int32_t r;
if ( (rand() % 10) == 0 && (r= coin->peers.numranked) != 0 && (addr= coin->peers.ranked[rand() % r]) != 0 && addr->dead == 0 && addr->usock >= 0 )
iguana_sendblockreqPT(coin,addr,bp,j,hash2,0);//, printf("%s ",addr->ipaddr);
@ -1192,7 +1192,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
}
hash2 = block->RO.hash2;
}
if ( i == bp->n && bp->emitfinish == 0 && iguana_bundlefinalize(coin,bp,&coin->MEM,coin->MEMB) == 0 )
if ( i == bp->n && iguana_bundlefinalize(coin,bp,&coin->MEM,coin->MEMB) == 0 )
{
//free(bp->speculative);
//bp->speculative = 0;

Loading…
Cancel
Save