Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
56c345ff7d
  1. 4
      iguana/iguana_bundles.c
  2. 6
      iguana/iguana_recv.c

4
iguana/iguana_bundles.c

@ -641,9 +641,9 @@ int32_t iguana_bundleissuemissing(struct iguana_info *coin,struct iguana_bundle
aveduration = (double)bp->totaldurations / bp->durationscount;
else aveduration = IGUANA_DEFAULTLAG/3 + 1;
aveduration *= mult;
if ( priority == 3 )
if ( 1 || priority == 3 )
n = iguana_bundlerequests(coin,missings,&tmp,&tmp2,mult,bp,priority);
else
else if ( 0 )
{
for (i=0; i<bp->n; i++)
{

6
iguana/iguana_recv.c

@ -1051,7 +1051,7 @@ int32_t iguana_blockreq(struct iguana_info *coin,int32_t height,int32_t priority
int32_t iguana_reqblocks(struct iguana_info *coin)
{
int32_t hdrsi,lflag,bundlei,iters=0,flag = 0; bits256 hash2; struct iguana_block *next,*block; struct iguana_bundle *bp;
int32_t hdrsi,hdrsi0,bundlei0,lflag,bundlei,iters=0,flag = 0; bits256 hash2; struct iguana_block *next,*block; struct iguana_bundle *bp;
if ( time(NULL) < coin->lastreqtime+2 )
return(0);
coin->lastreqtime = (uint32_t)time(NULL);
@ -1082,7 +1082,9 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
{
if ( (next= iguana_bundleblock(coin,&hash2,coin->bundles[hdrsi],bundlei)) == 0 )
{
if ( (block= iguana_blockfind("reqloop2",coin,coin->blocks.hwmchain.RO.hash2)) != 0 )
hdrsi0 = (coin->blocks.hwmchain.height) / coin->chain->bundlesize;
bundlei0 = (coin->blocks.hwmchain.height) % coin->chain->bundlesize;
if ( (block= iguana_bundleblock(coin,&hash2,coin->bundles[hdrsi0],bundlei0)) == 0 )
next = block->hh.next; //, next/block->mainchain = 1;
}
}

Loading…
Cancel
Save