Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
78e373469f
  1. 4
      iguana/iguana777.h
  2. 3
      iguana/iguana_bundles.c

4
iguana/iguana777.h

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

3
iguana/iguana_bundles.c

@ -457,7 +457,8 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
{
if ( peercounts[i] > 10 && (addr= coin->peers.ranked[i]) != 0 && now > bp->currenttime+30 )
{
addr->dead = (uint32_t)time(NULL);
if ( numpeers > 100 )
addr->dead = (uint32_t)time(NULL);
for (j=0; j<bp->n; j++)
{
if ( (block= bp->blocks[j]) != 0 && block->peerid == i && block->fpipbits == 0 )

Loading…
Cancel
Save