Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e59a6b80c8
  1. 2
      iguana/iguana777.h
  2. 2
      iguana/iguana_recv.c
  3. 4
      iguana/main.c

2
iguana/iguana777.h

@ -33,7 +33,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_HEIGHT 200
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 1024 //64
#define _IGUANA_MAXPENDING 128 //64
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_BUNDLELOOP 100
#define IGUANA_RPCPORT 7778

2
iguana/iguana_recv.c

@ -965,7 +965,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
if ( next != 0 )
{
//printf("have next %d\n",coin->blocks.hwmchain.height);
if ( memcmp(next->RO.prev_block.bytes,coin->blocks.hwmchain.RO.hash2.bytes,sizeof(bits256)) == 0 )
if ( 0 && memcmp(next->RO.prev_block.bytes,coin->blocks.hwmchain.RO.hash2.bytes,sizeof(bits256)) == 0 )
{
if ( _iguana_chainlink(coin,next) != 0 )
lflag++, flag++;

4
iguana/main.c

@ -43,9 +43,9 @@ struct supernet_info MYINFO,**MYINFOS;
static int32_t initflag;
cJSON *API_json;
#ifdef __linux__
int32_t IGUANA_NUMHELPERS = 1;
int32_t IGUANA_NUMHELPERS = 8;
#else
int32_t IGUANA_NUMHELPERS = 1;
int32_t IGUANA_NUMHELPERS = 4;
#endif
struct iguana_jsonitem { struct queueitem DL; struct supernet_info *myinfo; uint32_t fallback,expired,allocsize; char **retjsonstrp; char remoteaddr[64]; char jsonstr[]; };

Loading…
Cancel
Save