Clarify which netdir index is meant

This commit is contained in:
Nick Mathewson 2023-02-09 14:56:30 +00:00 committed by Ian Jackson
parent 33b8ebd67e
commit 8cda5a1a3e
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ impl HsDirRing {
// We would like to avoid re-computing the hsdir indexes, since they're a hash
// each. Instead, we look to see if our previous netdir contains a hash ring
// using the same parameters. If so, we make a hashmap of hsring_index values
// using the same parameters. If so, we make a hashmap from relay identities
// to hsring_index positions _in the previous netdir_
// to reuse.
//
// TODO: Actually, the relays in the consensus are ordered by their RSA identity.