Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1de5a191b2
  1. 1
      iguana/iguana_json.c
  2. 2
      iguana/iguana_peers.c

1
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\"}"));
}
}

2
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 )

Loading…
Cancel
Save