|
@ -378,6 +378,11 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
starti = coin->current->hdrsi; |
|
|
starti = coin->current->hdrsi; |
|
|
else starti = 0; |
|
|
else starti = 0; |
|
|
lag = (bp->hdrsi - starti); |
|
|
lag = (bp->hdrsi - starti); |
|
|
|
|
|
lag *= lag; |
|
|
|
|
|
if ( lag < 10 ) |
|
|
|
|
|
lag = 10; |
|
|
|
|
|
else if ( lag > 300 ) |
|
|
|
|
|
lag = 300; |
|
|
if ( (numpeers= coin->peers.numranked) > 8 )//&& bp->currentflag < bp->n )
|
|
|
if ( (numpeers= coin->peers.numranked) > 8 )//&& bp->currentflag < bp->n )
|
|
|
{ |
|
|
{ |
|
|
if ( bp->currentflag == 0 ) |
|
|
if ( bp->currentflag == 0 ) |
|
@ -498,7 +503,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
printf("[%d:%d] ",bp->hdrsi,i); |
|
|
printf("[%d:%d] ",bp->hdrsi,i); |
|
|
} |
|
|
} |
|
|
flag++; |
|
|
flag++; |
|
|
} else printf("%d ",now - block->issued); |
|
|
} //else printf("%d ",now - block->issued);
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if ( flag != 0 && bp == coin->current ) |
|
|
if ( flag != 0 && bp == coin->current ) |
|
@ -709,7 +714,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
} |
|
|
} |
|
|
retval = 1; |
|
|
retval = 1; |
|
|
} |
|
|
} |
|
|
else if ( bp->hdrsi > starti && bp->hdrsi <= starti+range ) |
|
|
else if ( bp->hdrsi >= starti && bp->hdrsi <= starti+range ) |
|
|
{ |
|
|
{ |
|
|
max = sqrt(bp->n) - (bp->n/coin->MAXBUNDLES)*(bp->hdrsi - starti); |
|
|
max = sqrt(bp->n) - (bp->n/coin->MAXBUNDLES)*(bp->hdrsi - starti); |
|
|
if ( max > 100 ) |
|
|
if ( max > 100 ) |
|
|