-
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
Implement getAddress / factor out some code #631
Conversation
5c3a868
to
911fd0b
Compare
Love that last commit. As for the Vibe.d deserialization one, not too convinced it's the right solution. Could you take it out for the time being ? |
Actually yes I guess that one is more in line with belonging in #621, I'll remove it. |
911fd0b
to
9a36fca
Compare
This function was only used from one place.
9a36fca
to
2385f4e
Compare
Codecov Report
@@ Coverage Diff @@
## v0.x.x #631 +/- ##
=======================================
Coverage 90.07% 90.07%
=======================================
Files 62 62
Lines 4564 4564
=======================================
Hits 4111 4111
Misses 453 453
Continue to review full report at Codecov.
|
The NetworkManager in the unittests uses the public key of the node as the effective address, but then the base class also used IP-based address banning despite of that. By abstracting the address, we can keep the behavior predictable. In addition, we will need to pass the address later when the handshake stage is changed later in preparation to fix bosagora#606
2385f4e
to
a43d2ad
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.
LGTM, rebased for you, merge at will
Extracted from #621