Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
05147512dc
  1. 9
      iguana/iguana_recv.c

9
iguana/iguana_recv.c

@ -810,9 +810,16 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig
for (i=match=0; i<n; i++)
{
//fprintf(stderr,"i.%d of %d bundleset\n",i,n);
bp = 0, bundlei = -1;
if ( bits256_cmp(zblocks[i].RO.prev_block,coin->blocks.hwmchain.RO.hash2) == 0 )
{
bp = 0, bundlei = -2;
if ( (bp= iguana_bundleset(coin,&block,&bundlei,(struct iguana_block *)&zblocks[i])) != 0 )
_iguana_chainlink(coin,block);
printf("HWM in hdr's prev[%d] bp.%p\n",i,bp);
}
if ( i > 0 && bits256_cmp(prevhash2,zblocks[i].RO.prev_block) == 0 )
{
bp = 0, bundlei = -2;
if ( (bp= iguana_bundleset(coin,&block,&bundlei,(struct iguana_block *)&zblocks[i])) != 0 )
{
bp->dirty++;

Loading…
Cancel
Save