summaryrefslogtreecommitdiff
path: root/tor-netdir/src/params.rs
Commit message (Collapse)AuthorAgeFilesLines
* Re-add a percentage type wrapper.Nick Mathewson2021-05-251-10/+10
| | | | | | It turns out that when we don't have a percentage type associated with a value, it is far too easy to forget to divide by 100 before using it as a fraction.
* Remove a needless lifetime.Nick Mathewson2021-05-251-1/+1
|
* Remove the no-longer-used params::ErrorNick Mathewson2021-05-251-25/+0
|
* Documentation fix.Nick Mathewson2021-05-251-5/+6
|
* It is not an error to see an unrecognized parameter.Nick Mathewson2021-05-251-39/+34
|
* Fix clippy warnings by marking types non-exhaustive.Nick Mathewson2021-05-251-1/+3
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-251-62/+37
| | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents.
* Use macros and types to improve handling of Netdir parameters.Nick Mathewson2021-05-251-252/+235
| | | | (Squashed from typed-netdir-params)
* Add support to override network parameters in the configuration.Nick Mathewson2021-02-161-3/+10
|
* Cleanup on DirInfo::circ_params.Nick Mathewson2020-12-221-0/+43
|
* Implement the "circwindow" and "ExtendByEd25519ID" parametersNick Mathewson2020-12-221-4/+0
| | | | | | These necessitated a little complexity for our circuit creation/extension API; we might want to refactor that down the road.
* Expose network parameters more sensibly from NetDir.Nick Mathewson2020-12-221-0/+263