-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dc: Prune peer map if we've pruned the id map (#2319)
* Prune peer list if we've pruned the path secret This ensures that when we prune entries from the map, we bound the size of the peer set as well. This also updates our test coverage to include a small-size map, which causes us to need to tweak a few assertions to account for the now semi-random removals. I'm not very happy with the result, but I think it's OK for now. Mid-term it probably makes sense to figure out a better way to make sure our logic is sound (e.g., probability of removing a recently added peer should be near zero). * Bound requested_handshakes too
- Loading branch information
1 parent
5d73bf8
commit 132ba54
Showing
2 changed files
with
105 additions
and
22 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