|
|
@ -529,9 +529,9 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
if ( now > block->issued+lag ) |
|
|
|
{ |
|
|
|
counter++; |
|
|
|
printf("[%d:%d] ",bp->hdrsi,i); |
|
|
|
if ( priority != 0 ) |
|
|
|
{ |
|
|
|
printf("[%d:%d] ",bp->hdrsi,i); |
|
|
|
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,bp == coin->current && now > block->issued+lag); |
|
|
|
if ( bp == coin->current && now > block->issued+lag*3 && (addr= coin->peers.ranked[rand() % numpeers]) != 0 ) |
|
|
|
iguana_sendblockreqPT(coin,addr,bp,i,block->RO.hash2,0); |
|
|
@ -555,7 +555,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
if ( block->issued == 0 || now > block->issued+lag ) |
|
|
|
{ |
|
|
|
block->numrequests++; |
|
|
|
if ( bp == coin->current ) |
|
|
|
//if ( bp == coin->current )
|
|
|
|
printf("[%d:%d].%x ",bp->hdrsi,i,block->fpipbits); |
|
|
|
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,bp == coin->current); |
|
|
|
bp->issued[i] = block->issued = now; |
|
|
@ -567,17 +567,17 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
// n++;
|
|
|
|
} |
|
|
|
} |
|
|
|
else if ( bits256_nonz(bp->hashes[i]) > 0 && now > bp->issued[i]+lag ) |
|
|
|
else if ( bits256_nonz(bp->hashes[i]) != 0 && now > bp->issued[i]+lag ) |
|
|
|
{ |
|
|
|
if ( bp == coin->current ) |
|
|
|
//if ( bp == coin->current )
|
|
|
|
printf("[%d:%d].%x ",bp->hdrsi,i,block->fpipbits); |
|
|
|
iguana_blockQ("kick",coin,bp,i,bp->hashes[i],bp == coin->current); |
|
|
|
bp->issued[i] = now; |
|
|
|
counter++; |
|
|
|
} |
|
|
|
else if ( bp->speculative != 0 && bits256_nonz(bp->speculative[i]) > 0 && now > bp->issued[i]+lag ) |
|
|
|
else if ( bp->speculative != 0 && bits256_nonz(bp->speculative[i]) != 0 && now > bp->issued[i]+lag ) |
|
|
|
{ |
|
|
|
if ( bp == coin->current ) |
|
|
|
//if ( bp == coin->current )
|
|
|
|
printf("[%d:%d].%x ",bp->hdrsi,i,block->fpipbits); |
|
|
|
iguana_blockQ("kick",coin,bp,i,bp->speculative[i],0); |
|
|
|
bp->issued[i] = now; |
|
|
@ -632,7 +632,7 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32 |
|
|
|
if ( now > bp->issued[i]+10 ) |
|
|
|
{ |
|
|
|
bp->issued[i] = now; |
|
|
|
//printf("speculative.[%d:%d]\n",bp->hdrsi,i);
|
|
|
|
printf("speculative.[%d:%d]\n",bp->hdrsi,i); |
|
|
|
iguana_blockQ("speculative",coin,0,-1,bp->speculative[i],0); |
|
|
|
} |
|
|
|
break; |
|
|
@ -954,7 +954,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) |
|
|
|
else if ( now > block->issued+10 ) |
|
|
|
{ |
|
|
|
block->issued = now; |
|
|
|
//printf("submit speculative [%d:%d]\n",bp->hdrsi,j);
|
|
|
|
printf("submit speculative [%d:%d]\n",bp->hdrsi,j); |
|
|
|
iguana_blockQ("spec",coin,0,-1,block->RO.hash2,0); |
|
|
|
} |
|
|
|
} |
|
|
|