Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
cd32b0308e
  1. 2
      iguana/iguana_recv.c

2
iguana/iguana_recv.c

@ -646,7 +646,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
int32_t i; static int32_t numrecv;
numrecv++;
for (i=numsaved=0; i<bp->n; i++)
if ( (tmpblock= bp->blocks[i]) != 0 && tmpblock->fpipbits != 0 && tmpblock->fpos >= 0 )
if ( (tmpblock= bp->blocks[i]) != 0 && tmpblock->fpipbits != 0 && tmpblock->fpos >= 0 && ((bp->hdrsi == 0 && i == 0) || bits256_nonz(tmpblock->RO.prev_block) != 0) )
numsaved++;
fprintf(stderr,"%s [%d:%d] block.%x | s.%d r.%d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,numsaved,numrecv);
}

Loading…
Cancel
Save