In count_acceptable_nodes(), count direct and indirect nodes with node_has_preferred_descriptor()

This commit is contained in:
Neel Chauhan
2018-10-17 21:43:59 -04:00
parent fd2e0ac1c3
commit 45b28167d7
4 changed files with 23 additions and 12 deletions
+7
View File
@@ -0,0 +1,7 @@
o Minor bugfixes (guards):
- In count_acceptable_nodes(), check if we have at least one bridge
or guard node, and two non-guard nodes for a circuit. Previously,
we have added up the sum of all nodes with a descriptor, but that
could cause us to build circuits that fail if we had either too
many bridges, or not enough guard nodes. Fixes bug 25885; bugfix
on 0.3.6.1-alpha. Patch by Neel Chauhan.