diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:26:46 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:28:48 +0300 |
commit | 7823c98a38556237a86c7235d411d7d2237cc2d6 (patch) | |
tree | 175f51c662f55ce9579fd1af186151b515e15429 /src/or/hs_descriptor.c | |
parent | 26c85fcc863678c06cc79ec1a58bd6c504d3321a (diff) | |
download | tor-7823c98a38556237a86c7235d411d7d2237cc2d6.tar.gz tor-7823c98a38556237a86c7235d411d7d2237cc2d6.zip |
prop224: Improve descriptor reupload logic.
We want to reupload our descriptor if its set of responsible HSDirs
changed to minimize reachability issues.
This patch adds a callback everytime we get new dirinfo which checks if
the hash ring changed and reuploads descriptor if needed.
Diffstat (limited to 'src/or/hs_descriptor.c')
-rw-r--r-- | src/or/hs_descriptor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c index 9a1e377155..3cdc023f79 100644 --- a/src/or/hs_descriptor.c +++ b/src/or/hs_descriptor.c @@ -2357,10 +2357,10 @@ static int * * Return 0 on success and encoded_out is a valid pointer. On error, -1 is * returned and encoded_out is set to NULL. */ -int -hs_desc_encode_descriptor(const hs_descriptor_t *desc, - const ed25519_keypair_t *signing_kp, - char **encoded_out) +MOCK_IMPL(int, +hs_desc_encode_descriptor,(const hs_descriptor_t *desc, + const ed25519_keypair_t *signing_kp, + char **encoded_out)) { int ret = -1; uint32_t version; |