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
  1. luke-jr commented at 8:34 pm on January 14, 2026: member
    Versions prior to 29.x all included a comma here, and the general format of the message still includes commas between all other fields
  2. 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 LogPeer by 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.

  3. polespinasa commented at 9:43 pm on January 14, 2026: member
    Trying to test this but in my logs I don’t see a peeraddr after peer. How can I test this?
  4. 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) {
    



    luke-jr commented at 3:31 am on January 23, 2026:
    Good catch, done.
  5. l0rinc approved
  6. l0rinc commented at 11:01 pm on January 14, 2026: contributor
    code review ACK 9e689f5cb5271c668610cf9cd21ba04cc8a755b4
  7. Bugfix: 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
    ffd09f8a0d
  8. luke-jr force-pushed on Jan 23, 2026
  9. luke-jr commented at 3:31 am on January 23, 2026: member

    Trying to test this but in my logs I don’t see a peeraddr after peer. How can I test this?

    -logips option

  10. luke-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, 2026
  11. l0rinc commented at 12:12 pm on January 23, 2026: contributor

    ACK 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 LogPeer instances 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.


github-metadata-mirror

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

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me