Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
842c7e5def
  1. 8
      iguana/iguana_recv.c

8
iguana/iguana_recv.c

@ -384,7 +384,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
if ( (block= bp->blocks[i]) != 0 && block->numrequests == 0 && block->mainchain != 0 ) if ( (block= bp->blocks[i]) != 0 && block->numrequests == 0 && block->mainchain != 0 )
{ {
block->numrequests++; block->numrequests++;
iguana_blockQ(coin,bp,i,block->RO.hash2,1); iguana_blockQ(coin,bp,i,block->RO.hash2,0);
//printf("%d ",i); //printf("%d ",i);
} }
} }
@ -422,7 +422,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
//if ( bp->bundleheight == 20000 ) //if ( bp->bundleheight == 20000 )
// printf("(%d:%d) ",bp->hdrsi,i); // printf("(%d:%d) ",bp->hdrsi,i);
block->numrequests++; block->numrequests++;
iguana_blockQ(coin,bp,i,block->RO.hash2,bp->numsaved > bp->n*.9); iguana_blockQ(coin,bp,i,block->RO.hash2,bp->numsaved > bp->n*.99);
bp->issued[i] = now; bp->issued[i] = now;
counter++; counter++;
if ( --max <= 0 ) if ( --max <= 0 )
@ -578,7 +578,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
blockhashes[0] = bp->hashes[0]; blockhashes[0] = bp->hashes[0];
if ( num >= coin->chain->bundlesize ) if ( num >= coin->chain->bundlesize )
{ {
iguana_blockQ(coin,0,-1,blockhashes[coin->chain->bundlesize],1); iguana_blockQ(coin,0,-1,blockhashes[coin->chain->bundlesize],0);
//printf("call allhashes\n"); //printf("call allhashes\n");
if ( bp->hdrsi == coin->bundlescount-1 ) if ( bp->hdrsi == coin->bundlescount-1 )
{ {
@ -624,7 +624,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
struct iguana_block *block; struct iguana_block *block;
if ( num == coin->chain->bundlesize+1 && (block= iguana_blockhashset(coin,-1,blockhashes[1],1)) != 0 ) if ( num == coin->chain->bundlesize+1 && (block= iguana_blockhashset(coin,-1,blockhashes[1],1)) != 0 )
block->blockhashes = blockhashes, req->hashes = 0; block->blockhashes = blockhashes, req->hashes = 0;
iguana_blockQ(coin,0,-1,blockhashes[1],1); iguana_blockQ(coin,0,-1,blockhashes[1],0);
} }
else iguana_blockQ(coin,0,-1,blockhashes[1],0); // should be RT block else iguana_blockQ(coin,0,-1,blockhashes[1],0); // should be RT block
return(req); return(req);

Loading…
Cancel
Save