Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddrBook management optimization and refactoring** [#246](github.com/pokt-network/pocket/issues/246) #283

Open
github-actions bot opened this issue Jan 12, 2023 · 0 comments

Comments

@github-actions
Copy link

pocket/p2p/CHANGELOG.md

Lines 99 to 104 in d552ec6

**[TECHDEBT] AddrBook management optimization and refactoring** [#246](github.com/pokt-network/pocket/issues/246)
- Added `peersManager` and `target` in order to abstract away and eliminate redundant computations
- Refactored debug logging in `getTarget` to print first and second target on the same line
- Refactored `AddPeerToAddrBook` to use an event-driven approach in order to leverage sorted data structures
- Added `RemovePeerToAddrBook` making use of the same pattern


This issue was generated by todo-issue based on a TECHDEBT comment in d552ec6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants