net: use CMessageHeader::HEADER_SIZE, add missing include #18931

pull jonatack wants to merge 1 commits into bitcoin:master from jonatack:netcpp-use-CMessageHeader_HEADER_SIZE changing 1 files +3 −2
  1. jonatack commented at 2:02 PM on May 10, 2020: member

    as suggested 16 months ago by Gleb Naumenko in #15197 (comment).

    static constexpr CMessageHeader::HEADER_SIZE is already used in this file, src/net.cpp, in 2 instances. This commit replaces the remaining 2 integer values in the file with it and adds the explicit include header.

    Co-authored by: Gleb Naumenko naumenko.gs@gmail.com

  2. net: use CMessageHeader::HEADER_SIZE, add missing include
    static constexpr CMessageHeader::HEADER_SIZE is already used in this file,
    src/net.cpp, in 2 instances. This commit replaces the remaining 2 integer
    values with it and adds the explicit include header.
    
    Co-authored by: Gleb Naumenko <naumenko.gs@gmail.com>
    83da576f44
  3. DrahtBot added the label P2P on May 10, 2020
  4. theStack approved
  5. theStack commented at 5:27 PM on May 10, 2020: member

    ACK 83da576f4416c64b5d520819208a722b2273739a -- verified that its just magic number elimination refactoring and additionally checked that all tests pass :+1:

  6. practicalswift commented at 5:59 PM on May 10, 2020: contributor

    ACK 83da576f4416c64b5d520819208a722b2273739a -- patch looks correct

  7. DrahtBot commented at 9:37 PM on May 10, 2020: member

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #18450 (util: Use locale independent ToString(…) instead of locale dependent strprintf(…) for low-level string formatting by practicalswift)

    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.

  8. naumenkogs commented at 3:25 PM on May 11, 2020: member

    utACK 83da576

  9. fanquake merged this on May 12, 2020
  10. fanquake closed this on May 12, 2020

  11. jonatack deleted the branch on May 12, 2020
  12. sidhujag referenced this in commit 41ee04fed3 on May 12, 2020
  13. Fabcien referenced this in commit 52644a5e02 on Jan 28, 2021
  14. ftrader referenced this in commit be0453753c on Apr 14, 2021
  15. DrahtBot locked this on Feb 15, 2022

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-04-14 21:14 UTC

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