Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6622d5fb31
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c
  3. 2
      iguana/main.c

2
iguana/iguana_bundles.c

@ -715,7 +715,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
}
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);
if ( max > 100 )

2
iguana/iguana_recv.c

@ -838,7 +838,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
hash2 = iguana_blockhash(coin,coin->backstop);
bp = coin->bundles[(coin->blocks.hwmchain.height+1)/coin->chain->bundlesize];
bundlei = (coin->blocks.hwmchain.height+1) % coin->chain->bundlesize;
if ( bits256_nonz(hash2) == 0 )
if ( bp != 0 && bits256_nonz(hash2) == 0 )
{
hash2 = bp->hashes[bundlei];
if ( bits256_nonz(hash2) == 0 && bp->speculative != 0 )

2
iguana/main.c

@ -336,7 +336,7 @@ void mainloop(struct supernet_info *myinfo)
for (i=0; i<IGUANA_MAXCOINS; i++)
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 )
{
iguana_bundleissue(coin,bp,bp->n,100);
//iguana_bundleissue(coin,bp,bp->n,100);
if ( (ptr= queue_dequeue(&balancesQ,0)) != 0 )
{
if ( ptr->bp != 0 && ptr->coin != 0 )

Loading…
Cancel
Save