Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4b8b0d706a
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_recv.c

2
iguana/iguana777.c

@ -531,7 +531,7 @@ void iguana_coinloop(void *arg)
}
if ( coin->bindsock >= 0 )
{
if ( coin->peers.numranked < coin->MAXPEERS/2 && now > coin->lastpossible )
if ( coin->peers.numranked < (7*coin->MAXPEERS/8) && now > coin->lastpossible )
{
//fprintf(stderr,"possible\n");
coin->lastpossible = iguana_possible_peer(coin,0); // tries to connect to new peers

4
iguana/iguana_bundles.c

@ -597,8 +597,8 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp)
void iguana_bundleissuemissing(struct iguana_info *coin,struct iguana_bundle *bp,uint8_t *missings)
{
int32_t i,tmp,tmp2,priority = 3; bits256 hash2; double aveduration;
//if ( bp->emitfinish != 0 )
// return;
if ( bp->emitfinish != 0 )
return;
if ( bp->durationscount != 0 )
aveduration = (double)bp->totaldurations / bp->durationscount;
else aveduration = IGUANA_DEFAULTLAG/3 + 1;

2
iguana/iguana_recv.c

@ -1128,7 +1128,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
}
}
}
if ( 0 && bits256_nonz(hash2) > 0 )
if ( strcmp("BTC",coin->symbol) == 0 && bits256_nonz(hash2) > 0 )
{
coin->backstopmillis = OS_milliseconds();
iguana_blockQ("mainchain",coin,0,-1,hash2,1);//lag > threshold);

Loading…
Cancel
Save