|
@ -702,7 +702,9 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana |
|
|
{ |
|
|
{ |
|
|
block->RO.txn_count = req->numtx; |
|
|
block->RO.txn_count = req->numtx; |
|
|
//block->RO.recvlen = recvlen;
|
|
|
//block->RO.recvlen = recvlen;
|
|
|
if ( req->copyflag != 0 && block->queued == 0 && bp != 0 ) |
|
|
if ( req->copyflag != 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
if ( block->queued == 0 && bp != 0 ) |
|
|
{ |
|
|
{ |
|
|
char str[65]; fprintf(stderr,"req.%p %s copyflag.%d %d data %d %d\n",req,bits256_str(str,block->RO.hash2),req->copyflag,block->height,req->recvlen,recvlen); |
|
|
char str[65]; fprintf(stderr,"req.%p %s copyflag.%d %d data %d %d\n",req,bits256_str(str,block->RO.hash2),req->copyflag,block->height,req->recvlen,recvlen); |
|
|
coin->numcached++; |
|
|
coin->numcached++; |
|
@ -727,6 +729,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana |
|
|
} else printf("got origblock.%s to cache\n",bits256_str(str,origblock->RO.hash2)); |
|
|
} else printf("got origblock.%s to cache\n",bits256_str(str,origblock->RO.hash2)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
//printf("datalen.%d ipbits.%x\n",datalen,req->ipbits);
|
|
|
//printf("datalen.%d ipbits.%x\n",datalen,req->ipbits);
|
|
|
} else printf("cant create origblock.%p block.%p bp.%p bundlei.%d\n",origblock,block,bp,bundlei); |
|
|
} else printf("cant create origblock.%p block.%p bp.%p bundlei.%d\n",origblock,block,bp,bundlei); |
|
|
return(req); |
|
|
return(req); |
|
|