-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix: routing table size use MaxPeers config #200
Fix: routing table size use MaxPeers config #200
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #200 +/- ##
==========================================
- Coverage 51.21% 50.28% -0.94%
==========================================
Files 117 117
Lines 17525 18341 +816
==========================================
+ Hits 8975 9222 +247
- Misses 7789 8321 +532
- Partials 761 798 +37
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, man.
Some comments need to be resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to figure out more information of p2p params.
a24523f
to
df3b9d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
Well, it seems like I made some mistakes with the bucket size concept.
The TryAddPeer would fail when bucket full.
It is horrible when it was connected by overwhelming peers, and node didn't even notice it.
@abrahamcruise321 Some more suggestions?
My node is currently out of sync. When is the new version expected to be released? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Description
Error logs:
network/server_discovery.go#L199 use fixed value
network/server_discovery.go#L211 add peer to dial queue from callback
In extreme cases, each peer will allocate a bucket, and cannot actively initiate a connection to a new peer when the capacity is insufficient
Changes include
Checklist
Testing