Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
5f974330de
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana777.h
  3. 3
      iguana/iguana_init.c
  4. 4
      iguana/iguana_recv.c

2
iguana/iguana777.c

@ -460,7 +460,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
if ( (coin->MAXPENDING= maxpending) <= 0 )
coin->MAXPENDING = (strcmp(symbol,"BTC") == 0) ? _IGUANA_MAXPENDING : _IGUANA_MAXPENDING;
if ( (coin->MAXBUNDLES= maxbundles) <= 0 )
coin->MAXBUNDLES = (strcmp(symbol,"BTC") == 0) ? _IGUANA_MAXBUNDLES : _IGUANA_MAXBUNDLES;
coin->MAXBUNDLES = (strcmp(symbol,"BTC") == 0) ? IGUANA_MAXPENDBUNDLES : IGUANA_MAXPENDBUNDLES;
coin->myservices = services;
sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname);
sprintf(dirname,"vouts/%s",symbol), OS_ensure_directory(dirname);

2
iguana/iguana777.h

@ -38,7 +38,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 77
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_MAXPENDBUNDLES 8
#define IGUANA_BUNDLELOOP 3
#define IGUANA_RPCPORT 7778
#define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16)

3
iguana/iguana_init.c

@ -351,8 +351,7 @@ struct iguana_info *iguana_coinstart(struct iguana_info *coin,int32_t initialhei
#ifndef IGUANA_DEDICATED_THREADS
coin->peers.peersloop = iguana_launch("peersloop",iguana_peersloop,coin,IGUANA_PERMTHREAD);
#endif
if ( 0 && (coin->MAXBUNDLES= coin->bundlescount / 4) < _IGUANA_MAXBUNDLES )
coin->MAXBUNDLES = _IGUANA_MAXBUNDLES;
coin->MAXBUNDLES = IGUANA_MAXPENDBUNDLES;
printf("started.%s\n",coin->symbol);
return(coin);
}

4
iguana/iguana_recv.c

@ -418,8 +418,8 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
iguana_bundleQ(coin,bp,bp->n*5);
return(0);
}
if ( (range= coin->peers.numranked) > IGUANA_MAXBUNDLES )
range = IGUANA_MAXBUNDLES;
if ( (range= coin->peers.numranked) > coin->MAXBUNDLES )
range = coin->MAXBUNDLES;
starti = coin->current == 0 ? 0 : coin->current->hdrsi;
if ( bp->hdrsi < starti + range )
{

Loading…
Cancel
Save