Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
92391d392d
  1. 2
      iguana/iguana777.h
  2. 2
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_recv.c

2
iguana/iguana777.h

@ -54,7 +54,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_DEFAULTRAM 4
#define IGUANA_MAXRECVCACHE ((int64_t)1024L * 1024 * 1024L)
#define IGUANA_MAXBUNDLES (50000000 / 500)
#define IGUANA_LOG2MAXPEERS 9
#define IGUANA_LOG2MAXPEERS 8
#define IGUANA_LOG2PACKETSIZE 21
#define IGUANA_LOG2PEERFILESIZE 23

2
iguana/iguana_bundles.c

@ -720,7 +720,7 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp)
{
struct iguana_bundle *prevbp; int32_t i;
#ifdef IGUANA_SERIALIZE_SPENDVECTORGEN
if ( coin->enableCACHE == 0 && coin->PREFETCHLAG != 0 && (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-0*coin->MAXBUNDLES )
if ( coin->PREFETCHLAG != 0 && (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-0*coin->MAXBUNDLES )
return(0);
#endif
for (i=0; i<bp->hdrsi; i++)

2
iguana/iguana_recv.c

@ -455,7 +455,7 @@ void iguana_gotheadersM(struct iguana_info *coin,struct iguana_peer *addr,struct
uint32_t i,sum = 0;
for (i=0; i<sizeof(hdrsreceived)/sizeof(*hdrsreceived); i++)
sum += hdrsreceived[i];
printf("TOTAL HRS RECEIVED %u -> %s\n",sum,mbstr(str,sum*80));
printf("TOTAL HDRS RECEIVED %u -> %s\n",sum,mbstr(str,sum*80));
}
addr->recvhdrs++;
if ( addr->pendhdrs > 0 )

Loading…
Cancel
Save