Browse Source

test

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

4
iguana/iguana_bundles.c

@ -372,11 +372,11 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
now = (uint32_t)time(NULL);
if ( bp == coin->current )
{
if ( time(NULL) > bp->lastspeculative+60 )
if ( 0 && time(NULL) > bp->lastspeculative+60 )
{
for (i=1,counter=0; i<bp->n; i++)
{
if ( (block= bp->blocks[i]) == 0 || block->RO.recvlen == 0 )
if ( (block= bp->blocks[i]) == 0 || block->fpos < 0 || block->fpipbits == 0 )
{
if ( bp->speculative != 0 && bits256_nonz(bp->hashes[i]) == 0 && bits256_nonz(bp->speculative[i]) > 0 && i < bp->numspec )
iguana_blockQ("speculate0",coin,0,-2,bp->speculative[i],0), counter++;

9
iguana/iguana_recv.c

@ -915,9 +915,12 @@ int32_t iguana_reqhdrs(struct iguana_info *coin)
init_hexbytes_noT(hashstr,bp->hashes[0].bytes,sizeof(bits256));
queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(hashstr),1);
//printf("hdrsi.%d reqHDR.(%s) numhashes.%d\n",bp->hdrsi,hashstr,bp->numhashes);
iguana_blockQ("reqhdrs0",coin,bp,0,bp->hashes[0],0);
if ( bits256_nonz(bp->hashes[1]) > 0 )
iguana_blockQ("reqhdrs1",coin,bp,1,bp->hashes[1],0);
if ( 0 )
{
iguana_blockQ("reqhdrs0",coin,bp,0,bp->hashes[0],0);
if ( bits256_nonz(bp->hashes[1]) > 0 )
iguana_blockQ("reqhdrs1",coin,bp,1,bp->hashes[1],0);
}
n++;
bp->hdrtime = bp->issuetime = (uint32_t)time(NULL);
}

Loading…
Cancel
Save