-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security: Limit how many addresses we use from each peer address messβ¦
β¦age (#7952) * Reformat a method to make related code clearer * Limit how many addresses we take from each peer response * Only put extra addresses back in the cache if there are actually any extras * Refactor address caching into a single method * Use the same method for updating the peer cache and taking peers from it * Choose response peers at random, and partially randomly drop excess peers * Update docs for this fix * Fix an index bug and clarify a comment * Add a proptest for cache updates
- Loading branch information
Showing
4 changed files
with
171 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters