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

refactor(network): refactor peer manager and redefine the min cons #1259

Merged
merged 5 commits into from
May 5, 2024

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented May 5, 2024

Description

This PR refactors the peer manager.
It keeps a list of all connected peers and tries to reconnect to them if the number of connected peers falls below the minimum connection threshold.

Copy link

codecov bot commented May 5, 2024

Codecov Report

Attention: Patch coverage is 81.69014% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 76.24%. Comparing base (dd77837) to head (839e69e).
Report is 2 commits behind head on main.

❗ Current head 839e69e differs from pull request most recent head e266d0f. Consider uploading reports for the commit e266d0f to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1259      +/-   ##
==========================================
+ Coverage   76.12%   76.24%   +0.11%     
==========================================
  Files         203      205       +2     
  Lines       10637    10661      +24     
==========================================
+ Hits         8097     8128      +31     
+ Misses       2149     2147       -2     
+ Partials      391      386       -5     

@themantre themantre merged commit 6b14f5a into pactus-project:main May 5, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants