소스 검색

Add a comment to have_enough_path_info()

Comment only change
teor (Tim Wilson-Brown) 10 년 전
부모
커밋
0c41ae1832
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/or/circuituse.c

+ 5 - 1
src/or/circuituse.c

@@ -1674,7 +1674,11 @@ circuit_launch(uint8_t purpose, int flags)
   return circuit_launch_by_extend_info(purpose, NULL, flags);
 }
 
-/* DOCDOC */
+/* Do we have enough descriptors to build paths?
+ * If need_exit is true, return 1 if we can build exit paths.
+ * (We need at least one Exit in the consensus to build exit paths.)
+ * If need_exit is false, return 0 if we can build internal paths.
+ */
 static int
 have_enough_path_info(int need_exit)
 {