Skip to content

Commit

Permalink
Security: Stop routing inventory requests by peer address (#3090)
Browse files Browse the repository at this point in the history
* Rewrite PeerSet comments to split long sentences

* Replace peer set integer indexes with address-based indexes

Also improve documentation and logging.

* Security: Stop using peer addresses to choose inventory routing order

* Minor doc and code cleanups

* Stop re-using a drained HashSet

* Replace used `_cancel` with `cancel`

* Reword a comment

* Replace cloned with copied
  • Loading branch information
teor2345 authored Nov 24, 2021
1 parent 0fafa30 commit f6abb15
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 107 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions zebra-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ byteorder = "1.4"
bytes = "1.1.0"
chrono = "0.4"
hex = "0.4"
# indexmap has rayon support for parallel iteration,
# which we don't use, so disable it to drop the dependencies.
indexmap = { version = "1.7", default-features = false }
lazy_static = "1.4.0"
pin-project = "1.0.7"
rand = "0.8"
Expand Down
Loading

0 comments on commit f6abb15

Please sign in to comment.