summaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
AgeCommit message (Collapse)Author
2010-09-27Implement new Wxx constraints.Mike Perry
Cases 1 and 3b are provably correct. Case 2b has a fallback to first try to maximize entropy.
2010-08-16Fix misplaced labelsSebastian Hahn
2010-08-16Fix a memory leak in dirvote_compute_consensuses()Sebastian Hahn
2010-08-16Fix a memory leakSebastian Hahn
It happened in dirvote_add_signatures_to_pending_consesus().
2010-07-27Create routerparse.hSebastian Hahn
2010-07-27Create rephist.hSebastian Hahn
2010-07-27Create policies.hSebastian Hahn
2010-07-27Create networkstatus.hSebastian Hahn
2010-07-27Create microdesc.hSebastian Hahn
2010-07-27Create dirvote.hSebastian Hahn
2010-07-27Create dirserv.hSebastian Hahn
2010-07-27Create directory.hSebastian Hahn
2010-07-27Create config.hSebastian Hahn
2010-07-27Create routerlist.hSebastian Hahn
2010-07-27Create router.hSebastian Hahn
2010-04-21immediate reachability check for new relaysRoger Dingledine
2010-04-20fetch unknown descriptors if we see them in a voteRoger Dingledine
2010-04-20minor cleanupsRoger Dingledine
2010-04-02Merge branch 'asprintf'Nick Mathewson
2010-03-29Segfault less during consensus generation without paramsSebastian Hahn
If no authority votes on any params, Tor authorities segfault when trying to make a new consensus from the votes. Let's change that.
2010-02-28Tweak users of snprintf to use asprintf where appropriateNick Mathewson
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2010-02-25For integers, if !(E<G), then we can infer that E>=G.Nick Mathewson
This means that "if (E<G) {abc} else if (E>=G) {def}" can be replaced with "if (E<G) {abc} else {def}" Doing the second test explicitly made my mingw gcc nervous that we might never be initializing casename.
2010-02-25Fix 64-bit printf issues in consensus-bw-weights5-merge.Nick Mathewson
For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the compiler 'printf("%lld", (long long int)x);' or else it doesn't believe the types match. This is why we added U64_PRINTF_ARG; it looks like we needed an I64_PRINTF_ARG too.
2010-02-25Check snprintf return values in format_networkstatus_vote.Mike Perry
Maybe this is what parakeep was complaining about? Really wish he would stick around more. Playing these guessing games is not fun :(
2010-02-25Cast our weights down to ints from int64.Mike Perry
They are capped to be between 0 and weight_scale (10000) by the code just before the snprintf.
2010-02-24Make unit tests work.Mike Perry
Still not sure why they generate an empty consensus document.. Too much frobbing going on there.
2010-02-22Add consensus method #defines.Mike Perry
2010-02-22Clearly mark directory footer so we parse the new weight line.Mike Perry
2010-02-22Add parsing+verification for bw weight values.Mike Perry
2010-02-22Perform calculation of consensus bandwidth weights.Mike Perry
Also add bwweightscale consensus param. Use it as our fixed-point calculation width.
2009-12-12Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson
2009-12-12*_free functions now accept NULLSebastian Hahn
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
2009-11-18Not everybody likes debugging printfs as much as INick Mathewson
2009-11-17Do not report a partially-successful detached signature add as failed.Nick Mathewson
Also, regenerate the detached-signature document whenever any signatures are successfully added.
2009-11-12Fix a memory leak on directory authorities during votingRoger Dingledine
Fix a memory leak on directory authorities during voting that was introduced in 0.2.2.1-alpha. Found via valgrind.
2009-10-26Fix bug 1066.Karsten Loesing
If all authorities restart at once right before a consensus vote, nobody will vote about "Running", and clients will get a consensus with no usable relays. Instead, authorities refuse to build a consensus if this happens.
2009-10-19Fix two bugs found by Coverity scan.Nick Mathewson
One was a simple buffer overrun; the other was a high-speed pointer collision. Both were introduced by my microdescs branch.
2009-10-19Fix compile with warnings problems on Snow LeopardSebastian Hahn
2009-10-18Document the microdescriptor code better.Nick Mathewson
2009-10-15Actually remember all the consensus types when we are done generating them.Nick Mathewson
2009-10-15Implement signatures for microdesc consensuses right.Nick Mathewson
This means we need to handle the existence of multiple flavors of signature in a detached signatures document, generate them correctly, and so on.
2009-10-15Generate all the flavors of consensuses when building consensuses.Nick Mathewson
2009-10-15Refactor consensus signature storage for multiple digests and flavors.Nick Mathewson
This patch introduces a new type called document_signature_t to represent the signature of a consensus document. Now, each consensus document can have up to one document signature per voter per digest algorithm. Also, each detached-signatures document can have up to one signature per <voter, algorithm, flavor>.
2009-10-15Code to generate, store, and parse microdescriptors and consensuses.Nick Mathewson
The consensus documents are not signed properly, not served, and not exchanged yet.
2009-10-15Functions to encode microdescriptors and their lines.Nick Mathewson
2009-10-15Make signature-generation code handle different key and digest lengths.Nick Mathewson
2009-09-15Fix compile on Snow LeopardSebastian Hahn
2009-09-14Implement proposal 167: Authorities vote on network parameters.Nick Mathewson
This code adds a new field to vote on: "params". It consists of a list of sorted key=int pairs. The output is computed as the median of all the integers for any key on which anybody voted. Improved with input from Roger.