-
- Downloads
Don't set HSDir index if we don't have a live consensus.
We also had to alter the SRV functions to take a consensus as optional input, since we might be setting our HSDir index using a consensus that is currently being processed and won't be returned by the networkstatus_get_live_consensus() function. This change has two results: a) It makes sure we are using a fresh consensus with the right SRV value when we are calculating the HSDir hash ring. b) It ensures that we will not use the sr_get_current/previous() functions when we don't have a consensus which would have falsely triggered the disaster SRV logic.
Showing
- src/or/hs_common.c 6 additions, 5 deletionssrc/or/hs_common.c
- src/or/hs_common.h 4 additions, 2 deletionssrc/or/hs_common.h
- src/or/networkstatus.c 11 additions, 4 deletionssrc/or/networkstatus.c
- src/or/networkstatus.h 1 addition, 0 deletionssrc/or/networkstatus.h
- src/or/nodelist.c 9 additions, 4 deletionssrc/or/nodelist.c
- src/or/shared_random.c 30 additions, 8 deletionssrc/or/shared_random.c
- src/or/shared_random.h 2 additions, 2 deletionssrc/or/shared_random.h
Loading
Please register or sign in to comment