Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
426bddaf31
  1. 10
      iguana/iguana_bundles.c

10
iguana/iguana_bundles.c

@ -374,9 +374,9 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
now = (uint32_t)time(NULL);
memset(peercounts,0,sizeof(peercounts));
memset(donecounts,0,sizeof(donecounts));
//if ( bp == coin->current )
if ( (numpeers= coin->peers.numranked) > 8 )
{
if ( bp->numhashes >= bp->n && (numpeers= coin->peers.numranked) > 8 )
if ( bp->numhashes >= bp->n )
{
for (j=0; j<numpeers; j++)
{
@ -391,7 +391,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
{
if ( block->peerid == 0 )
{
//printf("<%d> ",i);
printf("<%d>.%d ",i,j);
if ( block->fpipbits != 0 )
{
hashes[k++] = bp->hashes[i];
@ -490,8 +490,8 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
}
printf("currentflag.%d %d\n",bp->currentflag,bp->bundleheight);
}
return(counter);
}
return(counter);
/*if ( 0 && time(NULL) > bp->lastspeculative+60 )
{
for (i=1,counter=0; i<bp->n; i++)
@ -510,7 +510,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
}*/
}
// if ( bp != coin->current )
return(counter);
// return(counter);
for (i=counter=0; i<bp->n; i++)
{
if ( (block= bp->blocks[i]) != 0 )

Loading…
Cancel
Save