Skip to content

Add 'inbound' field to admin_peers JSON-RPC Call#7461

Merged
macfarla merged 3 commits intobesu-eth:mainfrom
7suyash7:inbound-field
Aug 16, 2024
Merged

Add 'inbound' field to admin_peers JSON-RPC Call#7461
macfarla merged 3 commits intobesu-eth:mainfrom
7suyash7:inbound-field

Conversation

@7suyash7
Copy link
Copy Markdown
Contributor

Adds an 'inbound' field to the network information returned by the admin_peers JSON-RPC Call.

Resolves #7436

7suyash7 and others added 3 commits August 13, 2024 15:54
Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Copy link
Copy Markdown
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

LGTM

example output

{"version":"0x5","name":"Geth/v1.13.14-stable-2ecaf439/linux-amd64/go1.22.2","caps":["eth/68","snap/1"],"network":{"localAddress":"172.16.0.2:63518","remoteAddress":"15.204.46.163:30303","inbound":false},"port":"0x0","id":"0xb91040a620d71a5d16431600e396991191b2f079452628a7722c1a14f8dbecdab00a1ea64e354c65ba4b58d67b9afeed913a6b8191fb4108498e10baa17d84c7","protocols":{"eth":{"difficulty":"0xc70d815d562d3cfa955","head":"0x39e83ddfc08b7268950fcf2903f3e8b9c392992204e2faa831d1779273b010d1","version":68}},"enode":"enode://b91040a620d71a5d16431600e396991191b2f079452628a7722c1a14f8dbecdab00a1ea64e354c65ba4b58d67b9afeed913a6b8191fb4108498e10baa17d84c7@15.204.46.163:30303"}

@macfarla macfarla enabled auto-merge (squash) August 16, 2024 00:16
@macfarla macfarla merged commit b2b55a5 into besu-eth:main Aug 16, 2024
gconnect pushed a commit to gconnect/besu that referenced this pull request Aug 26, 2024
* Add 'inbound' field to admin_peers JSON-RPC Call

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>

* added changelog entry

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>

---------

Signed-off-by: 7suyash7 <suyashnyn1@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: gconnect <agatevureglory@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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