[refactor] use ITEMS macro to unify NetMsgType, allNetMessageTypes lists #25275

pull LarryRuane wants to merge 1 commits into bitcoin:master from LarryRuane:2022-06-ITEMS-macro changing 1 files +47 −68
  1. LarryRuane commented at 6:51 PM on June 4, 2022: contributor

    This makes it easier to verify that the entries in these two long lists (P2P message names) correspond correctly. Also, it's easier to add new entries and reduces source code line count. No functional change.

  2. [refactor] use ITEMS macro to unify NetMsgType, allNetMessageTypes lists
    This makes it easier to verify that the entries in these two long lists
    (P2P message names) correspond correctly. Also, it's easier to add new
    entries and reduces source code line count. No functional change.
    d6198105a9
  3. DrahtBot added the label P2P on Jun 4, 2022
  4. DrahtBot commented at 5:22 AM on June 5, 2022: contributor

    <!--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:

    • #23233 (BIP324: Add encrypted p2p transport {de}serializer by dhruv)

    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.

  5. laanwj commented at 5:29 PM on June 8, 2022: member

    ~0 on this, I appreciate the idea to have the information in one list, but I like to avoid C macros and clever tricks with them where possible, due to the kludgy syntax

  6. LarryRuane closed this on Jul 25, 2022

  7. bitcoin locked this on Jul 25, 2023
Labels

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-27 15:14 UTC

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