From 51a9043919f534818d732ba75e6837177d4a2f9a Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 17 May 2016 01:07:11 -0500 Subject: [PATCH] test --- iguana/iguana777.c | 5 ++--- iguana/main.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 5638f5e1a..0671bccaf 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -682,8 +682,6 @@ void iguana_coinloop(void *arg) if ( coin->MAXPEERS < IGUANA_MINPEERS ) coin->MAXPEERS = IGUANA_MAXPEERS; #ifdef __PNACL__ - if ( strcmp(coin->symbol,"BTC") == 0 ) - continue; if ( coin->MAXPEERS > 64 ) coin->MAXPEERS = 64; #endif @@ -743,7 +741,8 @@ void iguana_coinloop(void *arg) } if ( coin->longestchain+10000 > coin->blocks.maxbits ) iguana_recvalloc(coin,coin->longestchain + 100000); - flag += iguana_processrecv(myinfo,coin); + if ( coin->RELAYNODE != 0 || coin->VALIDATENODE != 0 ) + flag += iguana_processrecv(myinfo,coin); } coin->idletime = (uint32_t)time(NULL); } diff --git a/iguana/main.c b/iguana/main.c index 2c732752b..9f7da35d2 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1162,7 +1162,7 @@ void iguana_appletests(struct supernet_info *myinfo) if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":1,\"VALIDATE\":1,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTCD\",\"active\":1,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) { free(str); - if ( 0 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTC\",\"active\":0,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) + if ( 1 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"RELAY\":0,\"VALIDATE\":0,\"prefetchlag\":-1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":64,\"newcoin\":\"BTC\",\"active\":0,\"numhelpers\":4,\"poll\":100}"),0,myinfo->rpcport)) != 0 ) { free(str); if ( 0 && (str= SuperNET_JSON(myinfo,cJSON_Parse("{\"agent\":\"SuperNET\",\"method\":\"login\",\"handle\":\"alice\",\"password\":\"alice\",\"passphrase\":\"alice\"}"),0,myinfo->rpcport)) != 0 )