Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
056bf8806f
  1. 23
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

23
iguana/iguana_bundles.c

@ -472,20 +472,15 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
}
}
}
if ( bp->numsaved < bp->n*.95 )
{
for (i=0; i<numpeers; i++)
printf("%d ",peercounts[i]);
}
else
{
for (i=0; i<bp->n; i++)
if ( (block= bp->blocks[i]) != 0 && block->fpipbits == 0 && now > block->issued+10 )
{
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,1);
printf("[%d:%d] ",bp->hdrsi,i);
}
}
for (i=0; i<numpeers; i++)
printf("%d ",peercounts[i]);
printf("peercounts\n");
for (i=0; i<bp->n; i++)
if ( (block= bp->blocks[i]) != 0 && block->fpipbits == 0 && now > block->issued+10 )
{
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,1);
printf("[%d:%d] ",bp->hdrsi,i);
}
printf("currentflag.%d ht.%d s.%d done.%d maxunfinished.%d\n",bp->currentflag,bp->bundleheight,bp->numsaved,doneval,maxval);
}
/*if ( doneval != maxval )

2
iguana/iguana_recv.c

@ -644,7 +644,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
struct iguana_bundle *bp=0; int32_t numsaved,bundlei = -2; struct iguana_block *block,*tmpblock;
bp = iguana_bundleset(coin,&block,&bundlei,origblock);
char str[65];
if ( 1 && bp == coin->current && bp != 0 )
if ( 0 && bp == coin->current && bp != 0 )
{
int32_t i; static int32_t numrecv;
numrecv++;

Loading…
Cancel
Save