8000 p2p: Log addresses of stalling peers by mzumsande · Pull Request #27761 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

p2p: Log addresses of stalling peers #27761

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

Merged
merged 1 commit into from
May 26, 2023

Conversation

mzumsande
Copy link
Contributor
@mzumsande mzumsande commented May 25, 2023

This was suggested in #27705 by ArmchairCryptologist.
It allows node operators that have the -logips option enabled to better identify potentially misbehaving peers and maybe ban them.
This is especially helpful in case of inbound peers for which (dis)connections aren't logged per default, so it's impossible to use the debug log to connect their nodeId to an address unless the very noisy net debugging is enabled.
In case of outbound peers for which the address is potentially logged when establishing the connection, this just adds some convenience.

@DrahtBot
Copy link
Contributor
DrahtBot commented May 25, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK stratospher, 0xB10C, instagibbs, jamesob

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

This allows node operators that have the -logips option enabled
to better identify potentially misbehaving peers and maybe
ban them.
@mzumsande mzumsande force-pushed the 202305_log_more_ips branch from 5421304 to fb02a3c Compare May 26, 2023 04:59
@stratospher
Copy link
Contributor

tACK fb02a3c.

nice to have this! cross checked locations where we'd like inbound peer/disconnection peeraddr logging.
(you may have to rebase on master for green CI.)

Copy link
Contributor
@0xB10C 0xB10C left a comment

Choose a reason for hiding this comment

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

Untested ACK fb02a3c

Somewhat related: net logging for specific IP subnets/addresses could also be useful for debugging something like #27705. Probably a bigger change though.

Copy link
Member
@instagibbs instagibbs left a comment

Choose a reason for hiding this comment

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

utACK fb02a3c

@jamesob
Copy link
Contributor
jamesob commented May 26, 2023

github ACK fb02a3c

@fanquake fanquake merged commit 8b59231 into bitcoin:master May 26, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 26, 2023
fb02a3c p2p: Log addresses of stalling peers (Martin Zumsande)

Pull request description:

  This was suggested in bitcoin#27705 by ArmchairCryptologist.
  It allows node operators that have the `-logips` option enabled to better identify potentially misbehaving peers and maybe ban them.
  This is especially helpful in case of inbound peers for which (dis)connections aren't logged per default, so it's impossible to use the debug log to connect their `nodeId` to an address unless the very noisy `net` debugging is enabled.
  In case of outbound peers for which the address is potentially logged when establishing the connection, this just adds some convenience.

ACKs for top commit:
  stratospher:
    tACK fb02a3c.
  jamesob:
    github ACK bitcoin@fb02a3c
  0xB10C:
    Untested ACK fb02a3c
  instagibbs:
    utACK fb02a3c

Tree-SHA512: 2080f794c715bd36143405828b4b0e1be859095caf8f8a0c20dd2a4b64d192d78fee0fa350a2bb7c39848718332c4dd4d8edb2cc8d22095b65afe710591f7ccb
@mzumsande mzumsande deleted the 202305_log_more_ips branch May 30, 2023 17:34
@Sjors
Copy link
Member
Sjors commented Jun 16, 2023

May I suggest a fine pairing? #27826

@mzumsande
Copy link
Contributor Author

Yes, I'll review soon! It's been on my list anyway but I got distracted by other things...

luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Aug 16, 2023
This allows node operators that have the -logips option enabled
to better identify potentially misbehaving peers and maybe
ban them.

Github-Pull: bitcoin#27761
Rebased-From: fb02a3c
@bitcoin bitcoin locked and limited conversation to collaborators Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants
0