Constant HOPS

Source
const HOPS: usize = 3;
Expand description

Number of hops in our hsdir, introduction, and rendezvous circuits

Required by tor_circmgr’s timeout estimation API ([tor_circmgr::CircMgr::estimate_timeout], [HsCircPool::estimate_timeout]).

TODO HS hardcoding the number of hops to 3 seems wrong. This is really something that HsCircPool knows. And some setups might want to make shorter circuits for some reason. And it will become wrong with vanguards? But right now I think this is what HsCircPool does.