From 1de5a191b2263cdc8892ff4f33edc51b6832bec1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Jan 2016 13:15:34 -0300 Subject: [PATCH] test --- iguana/iguana_json.c | 1 + iguana/iguana_peers.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iguana/iguana_json.c b/iguana/iguana_json.c index 7ba9d49c9..ef2c80a49 100755 --- a/iguana/iguana_json.c +++ b/iguana/iguana_json.c @@ -289,6 +289,7 @@ char *iguana_agentjson(char *name,struct iguana_info *coin,char *method,cJSON *j retjson = cJSON_CreateObject(); jaddstr(retjson,"result","peers found"); jadd(retjson,"peers",array); + return(jprint(retjson,1)); } else return(clonestr("{\"error\":\"no peers found\"}")); } } diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index c3068d995..14be7d618 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -891,8 +891,6 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) //printf("send version myservices.%llu\n",(long long)coin->myservices); iguana_send_version(coin,addr,coin->myservices); iguana_queue_send(coin,addr,serialized,"getaddr",0,0,0); - if ( addr->supernet != 0 ) - iguana_send_supernet(coin,addr,"{\"agent\":\"SuperNET\",\"method\":\"getpeers\"}"); //printf("after send version\n"); run = 0; while ( addr->usock >= 0 && addr->dead == 0 && coin->peers.shuttingdown == 0 )