Opened 7 years ago

Closed 5 years ago

#6763 closed enhancement (implemented)

Combine "m" lines with identical hash values

Reported by: ln5 Owned by:
Priority: Low Milestone: Tor: 0.2.4.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: ipv6 tor-auth
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

dirserv_generate_networkstatus_vote_obj() recently (or soon to be,
depending on how you see it -- it sits in my branch bug6363_5535)
started generating two "m" lines in votes, one for consensus methods
8-13 and one for method 14 ("a" lines).

For relays without an IPv6 address (i.e. not including an "or-address"
line in their descriptor), the two hashes will be identical.

As an optimisation we could combine two "m" lines with identical hash
values. As an example, instead of saying

    "m 1,2,3 H1"
    "m 4,5 H1"

we would say

    "m 1,2,3,4,5 H1"

but still say

    "m 1,2,3 H1"
    "m 4,5 H2"

This affects the size of the votes only and don't affect bandwidth
consumption for ordinary relays or clients in any way.

Child Tickets

Change History (4)

comment:1 Changed 7 years ago by nickm

Milestone: Tor: unspecified

comment:2 Changed 7 years ago by nickm

Keywords: tor-auth added

comment:3 Changed 7 years ago by nickm

Component: Tor Directory AuthorityTor

comment:4 Changed 5 years ago by nickm

Milestone: Tor: unspecifiedTor: 0.2.4.x-final
Resolution: implemented
Status: newclosed

Looks like we did this in 0.2.4.11-alpha with 2403ef66bada5f1fb851ce424af4ab5916faca67

Note: See TracTickets for help on using tickets.