summaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
AgeCommit message (Collapse)Author
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.