Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a27ab039ff
  1. 4
      iguana/iguana_bundles.c

4
iguana/iguana_bundles.c

@ -637,7 +637,7 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32
bp->hdrtime = (uint32_t)time(NULL); bp->hdrtime = (uint32_t)time(NULL);
if ( bp == coin->current && bp->speculative != 0 ) if ( bp == coin->current && bp->speculative != 0 )
{ {
printf("iguana_bundlehdr.[%d] %d %s\n",bp->hdrsi,bp->numspec,bits256_str(str,bp->hashes[0])); //printf("iguana_bundlehdr.[%d] %d %s\n",bp->hdrsi,bp->numspec,bits256_str(str,bp->hashes[0]));
if ( iguana_blocksmissing(coin,&avail,missings,0,bp,0,3) > 0 ) if ( iguana_blocksmissing(coin,&avail,missings,0,bp,0,3) > 0 )
iguana_bundleissuemissing(coin,bp,missings); iguana_bundleissuemissing(coin,bp,missings);
} }
@ -647,7 +647,7 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32
{ {
if ( time(NULL) > (bp->issued[1] + 10 + dist) ) if ( time(NULL) > (bp->issued[1] + 10 + dist) )
{ {
printf("request speculative[1] numspec.%d for bp.[%d] bp->speculative.%p enable.%d\n",bp->numspec,bp->hdrsi,bp->speculative,coin->enableCACHE); //printf("request speculative[1] numspec.%d for bp.[%d] bp->speculative.%p enable.%d\n",bp->numspec,bp->hdrsi,bp->speculative,coin->enableCACHE);
iguana_blockQ("getnexthdr",coin,bp,-1,bp->speculative[1],1); iguana_blockQ("getnexthdr",coin,bp,-1,bp->speculative[1],1);
bp->issued[1] = (uint32_t)time(NULL); bp->issued[1] = (uint32_t)time(NULL);
} }

Loading…
Cancel
Save