Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
62dac6978a
  1. 3
      iguana/iguana_recv.c

3
iguana/iguana_recv.c

@ -390,7 +390,6 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig
printf("iguana_recvblockhdrs null blocks?\n"); printf("iguana_recvblockhdrs null blocks?\n");
return(req); return(req);
} }
printf("GOT HDRS[%d] Q.%d %d\n",n,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ));
if ( blocks != 0 && n > 0 ) if ( blocks != 0 && n > 0 )
{ {
for (i=0; i<n; i++) for (i=0; i<n; i++)
@ -399,6 +398,8 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig
if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 && bp->hdrsi < IGUANA_MAXACTIVEBUNDLES ) if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 && bp->hdrsi < IGUANA_MAXACTIVEBUNDLES )
{ {
iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0); iguana_blockQ(coin,bp,bundlei,blocks[i].RO.hash2,0);
if ( i == 0 )
printf("GOT HDRS[%d] Q.(%d %d) ht.%d\n",n,queue_size(&coin->priorityQ),queue_size(&coin->blocksQ),bp->bundleheight);
} }
} }
} }

Loading…
Cancel
Save