Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Inbound field to admin_peers rpc call response #7443

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

obasekiosa
Copy link
Contributor

@obasekiosa obasekiosa commented Sep 16, 2024

Closes #7317

Changes

  • Adds Inbound boolean field which specifies if the peer is inbound or not to the PeerInfo Field

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

Previous tests where smoke tests and redundant, followed the pattern.

Documentation

Requires documentation update

  • Yes
  • No

docs auto-updates on this feature

Requires explanation in Release Notes

  • Yes
  • No

@@ -39,18 +41,20 @@ public PeerInfo(Peer peer, bool includeDetails)

Name = peer.Node.ClientId;
Id = peer.Node.Id.Hash.ToString(false);
Host = peer.Node.Host is null ? null : IPAddress.Parse(peer.Node.Host).MapToIPv4().ToString();
Host = IPAddress.Parse(peer.Node.Host!).MapToIPv4().ToString();
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure it will always be not null?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add inbound field for admin_peers json-rpc call.
2 participants