Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3641bb04a7
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_peers.c

2
iguana/iguana_bundles.c

@ -766,7 +766,7 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp)
{
struct iguana_bundle *prevbp; int32_t i,retval;
if ( (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-1 )
if ( (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-coin->MAXBUNDLES )
return(0);
for (i=0; i<bp->hdrsi; i++)
if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish < coin->startutc )

2
iguana/iguana_peers.c

@ -1081,7 +1081,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
}
else if ( coin->isRT != 0 && addr->rank > coin->MAXPEERS && (rand() % 100) == 0 )
{
printf("isRT and low rank.%d ",addr->rank);
//printf("isRT and low rank.%d ",addr->rank);
addr->dead = 1;
}
}

Loading…
Cancel
Save