summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-18 09:07:11 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-18 09:07:11 +0000
commitb885db033e917a7df6731827d5afba5fb806fc41 (patch)
treef1059bd940bd22371f4af36acd521b55cd11c72c
parent40f9f94794db4d9ce3f9dc9470b1192908cb2788 (diff)
downloadtor-b885db033e917a7df6731827d5afba5fb806fc41.tar.gz
tor-b885db033e917a7df6731827d5afba5fb806fc41.zip
remove crazy notion that clique_mode() means we are
already connected to everybody we could be connected to. svn:r2283
-rw-r--r--src/or/circuitbuild.c9
-rw-r--r--src/or/routerlist.c10
2 files changed, 1 insertions, 18 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index fdd7d0d5c7..acc2deb375 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1016,7 +1016,6 @@ onion_new_cpath_build_state(uint8_t purpose, const char *exit_digest)
static int count_acceptable_routers(smartlist_t *routers) {
int i, j, n;
int num=0;
- connection_t *conn;
routerinfo_t *r, *r2;
n = smartlist_len(routers);
@@ -1032,14 +1031,6 @@ static int count_acceptable_routers(smartlist_t *routers) {
log_fn(LOG_DEBUG,"Nope, the directory says %d is not verified.",i);
goto next_i_loop; /* XXX008 */
}
- if(clique_mode()) {
- conn = connection_get_by_identity_digest(r->identity_digest,
- CONN_TYPE_OR);
- if(!conn || conn->state != OR_CONN_STATE_OPEN) {
- log_fn(LOG_DEBUG,"Nope, %d is not connected.",i);
- goto next_i_loop;
- }
- }
for(j=0;j<i;j++) {
r2 = smartlist_get(routers, j);
if(!crypto_pk_cmp_keys(r->onion_pkey, r2->onion_pkey)) {
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 9d7f617763..3995fd7d98 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -202,15 +202,7 @@ router_add_running_routers_to_smartlist(smartlist_t *sl, int allow_unverified)
router = smartlist_get(routerlist->routers, i);
if(router->is_running &&
(allow_unverified || router->is_verified)) {
- if(!clique_mode()) {
- smartlist_add(sl, router);
- } else {
- connection_t *conn =
- connection_get_by_identity_digest(router->identity_digest,
- CONN_TYPE_OR);
- if(conn && conn->state == OR_CONN_STATE_OPEN)
- smartlist_add(sl, router);
- }
+ smartlist_add(sl, router);
}
}
}