|
@ -70,7 +70,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, |
|
|
checkbp = 0, j = -2; |
|
|
checkbp = 0, j = -2; |
|
|
if ( (checkbp= iguana_bundlefind(coin,&checkbp,&j,hash2)) != 0 && j >= 0 && j < checkbp->n ) |
|
|
if ( (checkbp= iguana_bundlefind(coin,&checkbp,&j,hash2)) != 0 && j >= 0 && j < checkbp->n ) |
|
|
{ |
|
|
{ |
|
|
if ( checkbp->emitfinish != 0 || (block= checkbp->blocks[j]) != 0 )//&& block->txvalid != 0) )
|
|
|
if ( checkbp->emitfinish != 0 || ((block= checkbp->blocks[j]) != 0 && block->txvalid != 0) ) |
|
|
{ |
|
|
{ |
|
|
//printf("found valid [%d:%d] in blockreqPT\n",checkbp->hdrsi,j);
|
|
|
//printf("found valid [%d:%d] in blockreqPT\n",checkbp->hdrsi,j);
|
|
|
return(0); |
|
|
return(0); |
|
|