|
@ -55,7 +55,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, |
|
|
coin->numreqsent++; |
|
|
coin->numreqsent++; |
|
|
addr->pendblocks++; |
|
|
addr->pendblocks++; |
|
|
addr->pendtime = (uint32_t)time(NULL); |
|
|
addr->pendtime = (uint32_t)time(NULL); |
|
|
//if ( 0 && coin->current == bp )
|
|
|
if ( 0 && coin->current == bp ) |
|
|
printf("REQ.%s bundlei.%d hdrsi.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1); |
|
|
printf("REQ.%s bundlei.%d hdrsi.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1); |
|
|
} else printf("MSG_BLOCK null datalen.%d\n",len); |
|
|
} else printf("MSG_BLOCK null datalen.%d\n",len); |
|
|
return(len); |
|
|
return(len); |
|
@ -1284,6 +1284,8 @@ int32_t iguana_blockQ(char *argstr,struct iguana_info *coin,struct iguana_bundle |
|
|
} |
|
|
} |
|
|
return(0); |
|
|
return(0); |
|
|
} |
|
|
} |
|
|
|
|
|
if ( block->queued != 0 ) |
|
|
|
|
|
return(0); |
|
|
height = block->height; |
|
|
height = block->height; |
|
|
} |
|
|
} |
|
|
if ( bp != 0 && bp->emitfinish != 0 ) |
|
|
if ( bp != 0 && bp->emitfinish != 0 ) |
|
@ -1303,7 +1305,7 @@ int32_t iguana_blockQ(char *argstr,struct iguana_info *coin,struct iguana_bundle |
|
|
req->height = height; |
|
|
req->height = height; |
|
|
req->bundlei = bundlei; |
|
|
req->bundlei = bundlei; |
|
|
char str2[65]; |
|
|
char str2[65]; |
|
|
printf("%s %s %s [%d:%d] %d %s %d numranked.%d qsize.%d\n",coin->symbol,argstr,str,bp!=0?bp->hdrsi:-1,bundlei,req->height,bits256_str(str2,hash2),coin->blocks.recvblocks,coin->peers.numranked,queue_size(Q)); |
|
|
//printf("%s %s %s [%d:%d] %d %s %d numranked.%d qsize.%d\n",coin->symbol,argstr,str,bp!=0?bp->hdrsi:-1,bundlei,req->height,bits256_str(str2,hash2),coin->blocks.recvblocks,coin->peers.numranked,queue_size(Q));
|
|
|
if ( Q == &coin->blocksQ ) |
|
|
if ( Q == &coin->blocksQ ) |
|
|
{ |
|
|
{ |
|
|
if ( (n= queue_size(Q)) > 100000 ) |
|
|
if ( (n= queue_size(Q)) > 100000 ) |
|
|