Refactor parameter computation and add a helper function
commit6927467bef1b5c46b85d30ac77b364ed407f6d72
authorNick Mathewson <nickm@torproject.org>
Tue, 10 May 2016 00:10:43 +0000 (9 20:10 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 1 Jul 2016 18:01:42 +0000 (1 14:01 -0400)
tree443f428f611c01150ba6e7eb5dd868305e0a85fb
parent09ecbdd8eef02228764018250b00ae8d8b64bb97
Refactor parameter computation and add a helper function

This patch makes us retain the intermediate list of K=V entries for
the duration of computing our vote, and lets us use that list with
a new function in order to look up parameters before the consensus
is published.

We can't actually use this function yet because of #19011: our
existing code to do this doesn't actually work, and we'll need a new
consensus method to start using it.

Closes ticket #19012.
src/or/dirvote.c
src/or/dirvote.h
src/test/test_dir.c