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

Fix enode parsing #4886

Merged
merged 4 commits into from
Nov 10, 2022
Merged

Fix enode parsing #4886

merged 4 commits into from
Nov 10, 2022

Conversation

marcindsobczak
Copy link
Contributor

Fixes | Closes | Resolves #4876

Changes:

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests??

  • Yes
  • No

@@ -84,7 +108,10 @@ public Enode(string enodeString)
public Address Address => _nodeKey.Address;
public IPAddress HostIp { get; }
public int Port { get; }
public string Info => $"enode://{_nodeKey.ToString(false)}@{HostIp}:{Port}";
public int DiscoveryPort { get; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but that is just parsing, what about usage?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's bigger refactoring, I created issue #4888

@marcindsobczak marcindsobczak merged commit 0934dd2 into master Nov 10, 2022
@marcindsobczak marcindsobczak deleted the fix/enode_parsing branch November 10, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin namespace API admin_addPeer misbehave for local host
2 participants