| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | netdir: Add a (hopefully) temporary workaround | Nick Mathewson | 2025-03-25 | 1 | -3/+27 |
| | | | | | | Instead of doing the more sensible thing when every relay has weight 0, give a warning message. | ||||
| * | netdir: Add a note about using f64 | Nick Mathewson | 2025-03-25 | 1 | -0/+8 |
| | | |||||
| * | netdir: Another test for choose_multiple_weighted. | Nick Mathewson | 2025-03-25 | 1 | -0/+17 |
| | | | | | | | Here we test the (arguably inconsistent behavior) where can we return fewer items than requested if no item had zero weight. (If this ever becomes an error, we need to modify the calling code.) | ||||
| * | netdir: Warn on unexpected WeightedErrors | Nick Mathewson | 2025-03-25 | 1 | -5/+13 |
| | | | | | | | WeightedError::InsufficientNonzero is expected under some circumstances, but the other instances would mean that we have a bug. | ||||
| * | netdir: add a test to verify weighted sampling | Nick Mathewson | 2025-03-25 | 1 | -3/+37 |
| | | | | | | We want to make sure that behavior for 0-weighted elements is consistent for choose_multiple_weighted and choose_weighted. | ||||
| * | tor-netdir: Handle InsufficientNonZero error. | Nick Mathewson | 2025-03-20 | 1 | -0/+8 |
| | | | | | Possible fix for #1902. | ||||
| * | Merge branch 'named_protovers' into 'main' | David Goulet | 2025-03-20 | 1 | -2/+2 |
| |\ | | | | | | | | | | | | | protover: Add support for subprotocol version mnemonics. Closes #1891 See merge request tpo/core/arti!2854 | ||||
| | * | Use named subprotocol versions throughout arti. | Nick Mathewson | 2025-03-12 | 1 | -2/+2 |
| | | | |||||
| * | | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -2/+2 |
| | | | | | | | | | - The Rng::gen() functions have been renamed to Rng::random(). | ||||
| * | | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -1/+1 |
| | | | | | | | | | - Several methods have been moved out of SliceRandom. | ||||
| * | | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -1/+1 |
| |/ | | | | - The rand::distributions module has been renamed to rand::distr | ||||
| * | netdir: Consider RelayFamilyIds based on family rules | Nick Mathewson | 2025-02-25 | 2 | -12/+28 |
| | | | | | | | | This implements the client side of proposal 321. It's a breaking change in netdir, since in_same_family now takes an extra argument. | ||||
| * | relay-selection: Add FamilyRules to exclude_relays_in_same_family. | Nick Mathewson | 2025-02-25 | 1 | -0/+63 |
| | | | | | | | | | | | | | When we're trying to exclude relays by family, we need to know which lists to look at. This information ultimately comes from the network parameters. We could avoid this change if we just told clients "look at all family information all the time", but that's not what the proposal says. This is a breaking change. | ||||
| * | netdir: Add client params related to happy families (prop321) | Nick Mathewson | 2025-02-25 | 1 | -0/+10 |
| | | |||||
| * | fix: fix typos | Dimitris Apostolou | 2025-01-30 | 1 | -1/+1 |
| | | |||||
| * | netdir: Add congestion control consensus parameters | David Goulet | 2025-01-16 | 1 | -22/+101 |
| | | | | | | | Related #534 Signed-off-by: David Goulet <[email protected]> | ||||
| * | tor-netdir: Add KIST consensus params. | Gabriela Moldovan | 2025-01-15 | 1 | -0/+26 |
| | | | | | | | These are tentative, so I haven't added them to param-spec yet. Part of #1729 | ||||
| * | clippy: deny `mod_module_files` | Steven Engler | 2025-01-06 | 1 | -0/+1 |
| | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files | ||||
| * | Resolve clippy::empty_line_after_doc_comments warnings. | Nick Mathewson | 2024-12-03 | 2 | -2/+1 |
| | | | | | These are new in Rust 1.83. | ||||
| * | add_warnings, *: Allow clippy::needless_lifetimes | Nick Mathewson | 2024-12-03 | 1 | -0/+1 |
| | | | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765. | ||||
| * | tor-netdir: Add timeliness param to wait_for_netdir_to_list. | Wesley Aptekar-Cassels | 2024-11-25 | 1 | -1/+2 |
| | | |||||
| * | Move helpers from tor-hsservice to tor-netdir. | Wesley Aptekar-Cassels | 2024-11-25 | 1 | -1/+79 |
| | | | | | | These helpers seem potentially broadly useful, and only really discoverable if they're here. | ||||
| * | tor-netdir: Allow access to the `ConsensusBuilder` when building test ↵ | Gabriela Moldovan | 2024-09-09 | 1 | -1/+6 |
| | | | | | netdirs (fmt). | ||||
| * | tor-netdir: Allow access to the `ConsensusBuilder` when building test netdirs. | Gabriela Moldovan | 2024-09-09 | 2 | -16/+16 |
| | | | | | | This allows us to set SRVs for example (needed because by default, the test `NetDir` is built from a consensus that doesn't contain any SRVs). | ||||
| * | Fix new "clippy::needless-maybe-sized" warning on nightly | Nick Mathewson | 2024-07-28 | 1 | -1/+1 |
| | | | | | | This warning complains when we say `where T: SomeTrait + ?Sized` when `SomeTrait` is inherently Sized. | ||||
| * | Re-run maint/add_warning. | Nick Mathewson | 2024-05-06 | 1 | -2/+2 |
| | | | | | This commit is automatically generated. | ||||
| * | Use uXX::MAX in place of std::uXX::MAX | Nick Mathewson | 2024-04-22 | 1 | -3/+3 |
| | | | | | | | The old code produced a warning from clippy nightly; we may as well update to use the new associated consts. (They've been there since Rust 1.4x.) | ||||
| * | Merge branch 'vanguard-mgr-sets' into 'main' | gabi-250 | 2024-04-10 | 1 | -8/+52 |
| |\ | | | | | | | | | | | | | tor-guardmgr: Make lite vanguards work Closes #1275 and #1340 See merge request tpo/core/arti!2075 | ||||
| | * | tor-netdir: Increase channel size to so set_netidr_and_notify doesn't block. | Gabriela Moldovan | 2024-04-09 | 1 | -1/+1 |
| | | | | | | | | | | | `TestNetDirProvider::set_netidr_and_notify` blocks if the channel is full, so let's give it a non-zero size. | ||||
| | * | tor-netdir: Implement TestNetDirProvider::events(). | Gabriela Moldovan | 2024-04-05 | 1 | -8/+52 |
| | | | |||||
| * | | Doc: tweak documentation on NetDir::id*listed functions | Nick Mathewson | 2024-04-10 | 1 | -10/+9 |
| | | | | | | | | | | | Previously they were a bit confusing, and the public function explained its behavior in terms of the private one. | ||||
| * | | Doc: Add xref from NetDir::by_ids to ids_listed. | Nick Mathewson | 2024-04-10 | 1 | -0/+7 |
| |/ | | | | | | | Explain that `by_ids` isn't what you want if you need to know whether a relay _definitely_ doesn't exist. Closes #1365 | ||||
| * | Fix some rustdoc links and copypaste errors in tor-netdir. | Nick Mathewson | 2024-04-04 | 2 | -5/+9 |
| | | |||||
| * | tor-netdir: Abolish Relay::has_same_relay_ids | Ian Jackson | 2024-04-03 | 2 | -11/+5 |
| | | | | | This was an open-coded specialisation. Remove the one call site. | ||||
| * | Comment fixes in RelayDetails refactor. | Ian Jackson | 2024-04-03 | 1 | -2/+4 |
| | | |||||
| * | Move rs_is_dircache to details.rs | Nick Mathewson | 2024-03-28 | 2 | -9/+9 |
| | | |||||
| * | Rename `Relay::same_relay` and make it private. | Nick Mathewson | 2024-03-28 | 2 | -9/+7 |
| | | | | | | Everybody outside of tor-netdir should use HasRelayIds::same_relay_ids, whose intent is clearer. | ||||
| * | Remove all *Relay is_flagged_guard methods. | Nick Mathewson | 2024-03-28 | 2 | -27/+3 |
| | | | | | These were only used for testing. | ||||
| * | Remove temporary functions in CheckedRelay. | Nick Mathewson | 2024-03-28 | 1 | -169/+57 |
| | | |||||
| * | Remove temporary functions in UncheckedRelay. | Nick Mathewson | 2024-03-28 | 1 | -26/+6 |
| | | |||||
| * | Move most functions from *Relay to *RelayDetails | Nick Mathewson | 2024-03-28 | 2 | -22/+166 |
| | | | | | | | | | In *RelayDetails, this is just a matter of changing a bunch of `self`s to `self.0`. Additionally, I've added temporary stub functions to delegate to the new functions. | ||||
| * | Relocate declarations of *Relay methods to details.rs | Nick Mathewson | 2024-03-28 | 2 | -129/+141 |
| | | | | | This is 99% code movement. | ||||
| * | Add low_level_details to {Unchecked,}Relay. | Nick Mathewson | 2024-03-27 | 2 | -0/+66 |
| | | | | | | | | | | | I'm going to use this wrapper type to hide checks that should mostly not be used without careful thinking. There are also comments here explaining when you'd want to use these types, and when you shouldn't. Part of #504. | ||||
| * | tor-netdir: Fix broken links in NetParameters docs. | Gabriela Moldovan | 2024-03-26 | 1 | -3/+3 |
| | | | | | Spotted in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2053#note_3012632 | ||||
| * | tor-netdir: Use IntegerSeconds for the vanguard lifetime params. | Gabriela Moldovan | 2024-03-26 | 1 | -4/+4 |
| | | |||||
| * | tor-netdir: Use consistent termninology in the vanguard param docs. | Gabriela Moldovan | 2024-03-26 | 1 | -6/+6 |
| | | |||||
| * | tor-netdir: Fix torspec links in vanguard param docs. | Gabriela Moldovan | 2024-03-26 | 1 | -8/+8 |
| | | |||||
| * | tor-netdir: Add the vanguard params to NetParameters. | Gabriela Moldovan | 2024-03-26 | 1 | -0/+70 |
| | | | | | | | See also torspec!258 Part of #1272 | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 6 | -0/+6 |
| | | |||||
| * | netdir: Add additional functionality to SubnetConfig | Nick Mathewson | 2024-03-12 | 1 | -1/+62 |
| | | | | | We'll need this to implement restrictions more reasonably. | ||||
