-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
peerstore: limit number of non connected peers in addrbook (#2971)
* peerstore: limit number of non connected peers in addrbook * use a pool for expiring addrs * fix lint * Remove AddrBook interface from CertifiedAddrBook * Add helper for TTL is connected * Keep heapIndex invariant when returing from pool * Revert accidental benchmark change * Add test --------- Co-authored-by: Marco Munizaga <[email protected]>
- Loading branch information
Showing
3 changed files
with
178 additions
and
58 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
Oops, something went wrong.