-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(net): add strategy to acquire effective peer if needed #5088
feat(net): add strategy to acquire effective peer if needed #5088
Conversation
…e deafult to true
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## release_v4.7.2 #5088 +/- ##
====================================================
+ Coverage 54.80% 54.97% +0.17%
- Complexity 8278 8331 +53
====================================================
Files 843 844 +1
Lines 49929 50027 +98
Branches 5513 5520 +7
====================================================
+ Hits 27362 27502 +140
+ Misses 20394 20340 -54
- Partials 2173 2185 +12 ☔ View full report in Codecov by Sentry. |
What does this PR do?
Add a new strategy that check if the node is isolated; if so, then try to acquire an effective peer.
Why are these changes required?
Sometimes, all peers of one node need to sync from it, then the node is called isolated island. This node's head block number doesn't grow, we need to find an effective peer to sync and broadcast messages.
This PR has been tested by:
Follow up
Extra details