aboutsummaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
AgeCommit message (Collapse)Author
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-20Update copyrights to 2018.Nick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-06-27Set published_out for consensus cache entries in ↵Alexander Færøy
spooled_resource_estimate_size(). This patch ensures that the published_out output parameter is set to the current consensus cache entry's "valid after" field. See: https://bugs.torproject.org/22702
2017-05-15Merge remote-tracking branch 'public/prop140_aftermath_cfg'Nick Mathewson
2017-05-15Implement functions to expose valid/fresh-until and votersNick Mathewson
These still won't do anything till I get the values to be filled in. Also, I changed the API a little (with corresponding changes in directory.c) to match things that it's easier to store.
2017-05-15Move stub accessor functions a level higher, to consdiffmgrNick Mathewson
2017-05-12Test fix: expect old consensuses to be deleted if not deflate-compressedNick Mathewson
2017-05-12consdiffmgr: expose cached consensusesNick Mathewson
2017-05-12consdiffmgr: compress incoming consensuses in the backgroundNick Mathewson
Also, compress them in several ways. This breaks the unit tests; subsequent commits will make them pass again.
2017-05-05Turn consdiffmgr.cache_max_age_hours into a parameterNick Mathewson
2017-04-27Merge branches 'consdiffmgr_orig_squashed' and 'actually_compute_diffs_squashed'Nick Mathewson
2017-04-27Pre-compress consensus diffs with supported consensus methods.Nick Mathewson
2017-04-27Store archived consensuses compressed on disk.Nick Mathewson
I'm just using gzip compression now, for performance.
2017-04-25Configure sandbox using consdiffmgr; free cdm on exit.Nick Mathewson
2017-04-24Fix a signed/unsigned comparison warning on 32-bitNick Mathewson
2017-04-24consdiffmgr: add tests for cdm_entry_get_sha3_valueNick Mathewson
2017-04-24consdiffmgr: function to re-validate stored sha3 digests at startupNick Mathewson
2017-04-24Test the easiest cases of consdiffmgr_cleanup.Nick Mathewson
One more to go: deleting the old diffs.
2017-04-24Unit tests for consdiffmgr moduleNick Mathewson
Initial tests. These just try adding a few consensuses, looking them up, and making sure that consensus diffs are generated in a more or less reasonable-looking way. It's enough for 87% coverage, but it leaves out a lot of functionality.
2017-04-24Add a "Consensus diff manager" module.Nick Mathewson
This module's job is to remember old consensus documents, to calculate their diffs on demand, and to . There are some incomplete points in this code; I've marked them with "XXXX". I intend to fix them in separate commits, since I believe doing it in separate commits will make the branch easier to review.