Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e7ab99f985
  1. 4
      iguana/iguana_blocks.c
  2. 4
      iguana/iguana_recv.c

4
iguana/iguana_blocks.c

@ -381,8 +381,8 @@ struct iguana_block *_iguana_chainlink(struct iguana_info *coin,struct iguana_bl
}
}
}
//if ( block->fpipbits == 0 )
// iguana_blockQ(coin,bp,block->height % coin->chain->bundlesize,block->RO.hash2,1);
if ( strcmp("BTC",coin->symbol) == 0 && block->fpipbits == 0 )
iguana_blockQ("mainchain",coin,bp,block->height % coin->chain->bundlesize,block->RO.hash2,0);
block->mainchain = 1;
//iguana_blockreq(coin,block->height+1,0);
return(block);

4
iguana/iguana_recv.c

@ -732,7 +732,7 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig
if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 )
{
bp->dirty++;
if ( 1 && bp->issued[bundlei] == 0 )
if ( 0 && bp->issued[bundlei] == 0 )
iguana_blockQ("recvhdr",coin,bp,bundlei,blocks[i].RO.hash2,0);
//printf("{%d:%d} ",bp->hdrsi,bundlei);
if ( i == 0 )
@ -826,7 +826,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
{
bp->speculative[i] = blockhashes[i];
//printf("speculate new issue [%d:%d]\n",bp->hdrsi,i);
//iguana_blockQ("speculate",coin,bp,-i,blockhashes[i],0);
iguana_blockQ("speculate",coin,bp,-i,blockhashes[i],0);
}
bp->speculative[0] = bp->hashes[0];
bp->numspec = num <= bp->n+1 ? num : bp->n+1;

Loading…
Cancel
Save