Bugfix: net_processing: Restore missing comma between peer and peeraddr in “receive version message” and “New ___ peer connected” #34293
pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:fix_vermsg_missing_comma changing 1 files +6 −4-
luke-jr commented at 8:34 pm on January 14, 2026: memberVersions prior to 29.x all included a comma here, and the general format of the message still includes commas between all other fields
-
DrahtBot commented at 8:34 pm on January 14, 2026: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage & Benchmarks
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34293.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK l0rinc If your review is incorrectly listed, please copy-paste <!–meta-tag:bot-skip–> into the comment that the bot should ignore.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #34389 (net/log: standardize peer+addr log formatting via
LogPeerby l0rinc) - #34181 (refactor: [p2p] Make ProcessMessage private again, Use references when non-null by maflcko)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
- #34389 (net/log: standardize peer+addr log formatting via
-
polespinasa commented at 9:43 pm on January 14, 2026: memberTrying to test this but in my logs I don’t see a
peeraddrafterpeer. How can I test this? -
in src/net_processing.cpp:3676 in 9e689f5cb5 outdated
3672 peer->m_starting_height, addrMe.ToStringAddrPort(), fRelay, pfrom.GetId(), 3673- pfrom.LogIP(fLogIPs), (mapped_as ? strprintf(", mapped_as=%d", mapped_as) : "")); 3674+ fLogIPs ? "," : "", pfrom.LogIP(fLogIPs), (mapped_as ? strprintf(", mapped_as=%d", mapped_as) : "")); 3675 3676 if (pfrom.IsPrivateBroadcastConn()) { 3677 if (fRelay) {
l0rinc commented at 11:01 pm on January 14, 2026:Seems the original contained the leading comma: https://github.com/bitcoin/bitcoin/pull/28521/changes#diff-6875de769e90cec84d2e8a9c1b962cdbcda44d870d42e4215827e599e11e90e3L3570 (cc: @Sjors)
Edit: Can you please fix https://github.com/bitcoin/bitcoin/blob/b0b65336e76153f81c782e2a940ee6f925b32048/src/net_processing.cpp#L3803, too?
luke-jr commented at 3:31 am on January 23, 2026:Good catch, done.l0rinc approvedl0rinc commented at 11:01 pm on January 14, 2026: contributorcode review ACK 9e689f5cb5271c668610cf9cd21ba04cc8a755b4ffd09f8a0dBugfix: net_processing: Restore missing comma between peer and peeraddr in "receive version message" and "New ___ peer connected"
Versions prior to 29.x all included a comma here, and the general format of the message still includes commas between all other fields
luke-jr force-pushed on Jan 23, 2026luke-jr commented at 3:31 am on January 23, 2026: memberTrying to test this but in my logs I don’t see a peeraddr after peer. How can I test this?
-logipsoptionluke-jr renamed this:
Bugfix: net_processing: Restore missing comma between peer and peeraddr in "receive version message"
Bugfix: net_processing: Restore missing comma between peer and peeraddr in "receive version message" and "New ___ peer connected"
on Jan 23, 2026l0rinc commented at 12:12 pm on January 23, 2026: contributorACK ffd09f8a0d024423d55c07223a588d35c0a97c0c
This does fix an existing issue introduced in https://github.com/bitcoin/bitcoin/pull/28521/changes#diff-6875de769e90cec84d2e8a9c1b962cdbcda44d870d42e4215827e599e11e90e3L3570. I think we should fix all remaining
LogPeerinstances as well in a more systematic way, not just two of the instances, so I opened an alternative in #34389, added @luke-jr as a coauthor.
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-01-27 06:13 UTC
More mirrored repositories can be found on mirror.b10c.me