|
@@ -1803,6 +1803,13 @@ circuit_find_to_cannibalize(uint8_t purpose_to_produce, extend_info_t *info,
|
|
|
goto next;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * that the Guard was removed from the samepled set after the circuit
|
|
|
+ * was created so avoid using it. */
|
|
|
+ if (!entry_guard_could_succeed(circ->guard_state)) {
|
|
|
+ goto next;
|
|
|
+ }
|
|
|
+
|
|
|
if ((!need_uptime || circ->build_state->need_uptime) &&
|
|
|
(!need_capacity || circ->build_state->need_capacity) &&
|
|
|
(internal == circ->build_state->is_internal) &&
|