From ca6b7f9a8cf42f0684dabe29c6cb9a116f088fd3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 12:12:52 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 3 ++- iguana/main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index dda22b0f9..5c287bbfc 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -583,6 +583,7 @@ void iguana_startconnection(void *arg) } if ( strcmp("127.0.0.1",addr->ipaddr) == 0 && (coin->myservices & NODE_NETWORK) != 0 ) { + iguana_iAkill(coin,addr,0); printf("avoid self-loopback\n"); return; } @@ -968,7 +969,7 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) } if ( flag == 0 ) { - if ( time(NULL) > addr->pendtime+30 ) + if ( 0 && time(NULL) > addr->pendtime+30 ) { if ( addr->pendblocks > 0 ) addr->pendblocks--; diff --git a/iguana/main.c b/iguana/main.c index 6708f9f51..18ec5bba1 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -318,7 +318,7 @@ void iguana_main(void *arg) #ifdef __APPLE__ sleep(1); char *str; - if ( (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1,\"maxpeers\":16,\"coin\":\"BTCD\",\"active\":1}"),0)) != 0 ) + if ( (str= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"agent\":\"iguana\",\"method\":\"addcoin\",\"services\":1,\"maxpeers\":16,\"coin\":\"BTC\",\"active\":1}"),0)) != 0 ) { printf("got.(%s)\n",str); free(str);