-
Notifications
You must be signed in to change notification settings - Fork 37.4k
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
2c3235d
to
5421304
Compare
This allows node operators that have the -logips option enabled to better identify potentially misbehaving peers and maybe ban them.
5421304
to
fb02a3c
Compare
tACK fb02a3c. nice to have this! cross checked locations where we'd like inbound peer/disconnection peeraddr logging. |
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.
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.
utACK fb02a3c
github ACK fb02a3c |
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
May I suggest a fine pairing? #27826 |
Yes, I'll review soon! It's been on my list anyway but I got distracted by other things... |
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
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 noisynet
debugging is enabled.In case of outbound peers for which the address is potentially logged when establishing the connection, this just adds some convenience.