Browse Source

Test

etomic
jl777 8 years ago
parent
commit
196c44c5b5
  1. 4
      iguana/dpow/dpow_network.c
  2. 7
      iguana/iguana777.h

4
iguana/dpow/dpow_network.c

@ -94,10 +94,6 @@ void dex_init(struct supernet_info *myinfo)
printf("seed.[%d] <- %s\n",i,seeds[j]);
strcpy(myinfo->dexseed_ipaddrs[i],seeds[j]);
myinfo->dexipbits[i] = (uint32_t)calc_ipbits(myinfo->dexseed_ipaddrs[i]);
#ifdef NOTARY_TESTMODE
i = 1;
break;
#endif
}
myinfo->numdexipbits = i;
portable_mutex_init(&myinfo->dexmutex);

7
iguana/iguana777.h

@ -164,7 +164,12 @@ struct supernet_info
struct liquidity_info linfos[512]; cJSON *liquidity_currencies; struct pending_trade *trades; portable_mutex_t pending_mutex;
struct komodo_notaries NOTARY;
char seedipaddr[64]; uint32_t dpowipbits[128]; int32_t numdpowipbits; portable_mutex_t notarymutex,dpowmutex;
char dexseed_ipaddrs[2][64]; uint32_t dexipbits[128]; int32_t numdexipbits; portable_mutex_t dexmutex;
#ifdef NOTARY_TESTMODE
char dexseed_ipaddrs[1][64];
#else
char dexseed_ipaddrs[8][64];
#endif
uint32_t dexipbits[128]; int32_t numdexipbits; portable_mutex_t dexmutex;
// compatibility
bits256 pangea_category,instantdex_category;
uint8_t logs[256],exps[510];

Loading…
Cancel
Save