diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-05 20:15:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-05 20:15:27 +0000 |
commit | 75d85c8214eab8d6a06a60445307223c4a6a57d8 (patch) | |
tree | b26b4f4c4cfb16cc9f99bbecec0a99b78168c087 /src/or/rendservice.c | |
parent | 757def59b6909fdb36d663bab5a059b70e6d6b5d (diff) | |
download | tor-75d85c8214eab8d6a06a60445307223c4a6a57d8.tar.gz tor-75d85c8214eab8d6a06a60445307223c4a6a57d8.zip |
On directory servers, old_routers was wasting hundreds of bytes per superseded router descriptor. Roll the signed descriptor info and identifying info into a cache_info struct, and use only that for old_routers.
svn:r5349
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 5982c18e8d..ae2d10facc 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -975,7 +975,8 @@ rend_services_introduce(void) changed = 1; hex_digest = tor_malloc_zero(HEX_DIGEST_LEN+2); hex_digest[0] = '$'; - base16_encode(hex_digest+1, HEX_DIGEST_LEN+1, router->identity_digest, + base16_encode(hex_digest+1, HEX_DIGEST_LEN+1, + router->cache_info.identity_digest, DIGEST_LEN); smartlist_add(intro_routers, router); smartlist_add(exclude_routers, router); |