Function tor_circmgr::hspool::circuit_compatible_with_target
source ยท fn circuit_compatible_with_target(
netdir: &NetDir,
circ: &HsCircStub,
exclude_target: &RelayExclusion<'_>
) -> bool
Available on crate feature
hs-common
only.Expand description
Return true if we can extend a pre-built circuit circ
to target
.
We require that the circuit is open, that every hop in the circuit is
listed in netdir
, and that no hop in the circuit shares a family with
target
.