Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b5f3078292
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana777.h
  3. 4
      iguana/iguana_peers.c

2
iguana/iguana777.c

@ -429,7 +429,7 @@ void iguana_coinloop(void *arg)
} }
} }
if ( flag == 0 ) if ( flag == 0 )
usleep((coin->polltimeout+1) * 1000); usleep((coin->polltimeout+1) * 10);
} }
} }

2
iguana/iguana777.h

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

4
iguana/iguana_peers.c

@ -1034,8 +1034,8 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
usleep(100000); usleep(100000);
} }
else if ( addr->rank != 1 ) else if ( addr->rank != 1 )
usleep(coin->polltimeout*10000 + 1*(rand() % (coin->polltimeout*10000))); usleep(coin->polltimeout*10 + 1*(rand() % (coin->polltimeout*10)));
else usleep(1000); else usleep(10);
} else run >>= 2; } else run >>= 2;
} }
if ( flag != 0 ) if ( flag != 0 )

Loading…
Cancel
Save