From 95bc23a070ecd85aab489b533662b71010dfd6c4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 14 Feb 2017 21:14:45 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 14 +++++--------- iguana/iguana777.h | 2 +- iguana/kmd_lookup.h | 2 +- iguana/tests/REVS.batch9 | 7 +++++++ 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index bb9450b6c..59dd152ae 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -70,24 +70,20 @@ NN_CONNECT to (tcp://197.189.248.210:7775) NN_CONNECT to (tcp://149.56.19.212:7775) NN_CONNECT to (tcp://46.165.243.214:7775) NN_CONNECT to (tcp://45.64.168.216:7775) -NN_CONNECT to (tcp://94.102.63.217:7775) -NN_CONNECT to (tcp://192.99.233.217:7775) -NN_CONNECT to (tcp://27.50.68.219:7775) -NN_CONNECT to (tcp://167.114.227.223:7775) -NN_CONNECT to (tcp://94.102.63.227:7775) -NN_CONNECT to (tcp://176.9.0.233:7775) -NN_CONNECT to (tcp://27.50.93.252:7775)*/ +*/ void dex_init(struct supernet_info *myinfo) { - int32_t i,j,mask = 0; char *seeds[] = { "78.47.196.146", "5.9.102.210", "149.56.29.163", "191.235.80.138", "88.198.65.74", "94.102.63.226", "129.232.225.202", "104.255.64.3", "52.72.135.200", "149.56.28.84", "103.18.58.150", "221.121.144.140", "123.249.79.12", "103.18.58.146" }; + int32_t i,j,mask = 0; char *seeds[] = { "78.47.196.146", "5.9.102.210", "149.56.29.163", "191.235.80.138", "88.198.65.74", "94.102.63.226", "129.232.225.202", "104.255.64.3", "52.72.135.200", "149.56.28.84", "103.18.58.150", "221.121.144.140", "123.249.79.12", "103.18.58.146", "27.50.93.252", "176.9.0.233", "94.102.63.227", "167.114.227.223", "27.50.68.219", "192.99.233.217", "94.102.63.217", "45.64.168.216" }; OS_randombytes((void *)&i,sizeof(i)); srand(i); for (i=0; idexseed_ipaddrs)/sizeof(*myinfo->dexseed_ipaddrs); i++) { while ( 1 ) { - j = i == 0 ? i : (rand() % (sizeof(seeds)/sizeof(*seeds))); + j = (rand() % (sizeof(seeds)/sizeof(*seeds))); + if ( i == 0 ) + j = 0; if ( ((1 << j) & mask) == 0 ) break; } diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 648eea8c1..60916e0a0 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -131,7 +131,7 @@ struct supernet_info struct liquidity_info linfos[512]; struct komodo_notaries NOTARY; char seedipaddr[64]; uint32_t dpowipbits[128]; int32_t numdpowipbits; portable_mutex_t notarymutex,dpowmutex; - char dexseed_ipaddrs[4][64]; uint32_t dexipbits[128]; int32_t numdexipbits; portable_mutex_t dexmutex; + char dexseed_ipaddrs[2][64]; uint32_t dexipbits[128]; int32_t numdexipbits; portable_mutex_t dexmutex; // compatibility bits256 pangea_category,instantdex_category; uint8_t logs[256],exps[510]; diff --git a/iguana/kmd_lookup.h b/iguana/kmd_lookup.h index 142dca833..70de42a8b 100755 --- a/iguana/kmd_lookup.h +++ b/iguana/kmd_lookup.h @@ -723,7 +723,7 @@ void kmd_bitcoinscan() { if ( (coin= iguana_coinfind(jstri(array,i))) != 0 && strcmp(coin->symbol,"BTC") != 0 ) { - if ( strcmp("KMD",coin->symbol) == 0 ) + //if ( strcmp("KMD",coin->symbol) == 0 ) _kmd_bitcoinscan(coin); } } diff --git a/iguana/tests/REVS.batch9 b/iguana/tests/REVS.batch9 index 725731aa5..9b581cba8 100755 --- a/iguana/tests/REVS.batch9 +++ b/iguana/tests/REVS.batch9 @@ -18,3 +18,10 @@ sleep 1 fiat/revs sendtoaddress RH8q81jTRuH35g2g59iT3kxJWoF9Unzgqq 65.95939412 # total KMD 0.00000000 REVS 5607.48944795 +d5d9950efea532582846b744eaf4e922556fa1446a2364fd55aaa90f4510106b +48acaf51ecc7aba3209bb2532c777ee9594c66d46056cb8003a11cc16c6bbb27 +5c06f259610af698bed238b1a849201c5ef1bd05619773f4df5e930d1a926b40 +f871cf48871b1bf6ccd9a388876ab911666b045da981ccd49f3d54315fdeac11 +e0db5b8c49fe3d7f0a51df0844bb7b04838661a436575f5b8c8c895ed8c33349 +ab617a095862b0db6d3aeec36e628b2d67aa7130548fac7d9be950b7687fec8b +