refactor: s/command/msg_type/ in CNetMsgMaker and CSerializedNetMsg #18937

pull theStack wants to merge 1 commits into bitcoin:master from theStack:20200520-refactor-replace-command-by-msgtype-part-3 changing 4 files +10 −10
  1. theStack commented at 5:55 PM on May 10, 2020: contributor

    Follow-up PR for #18533 -- another small step towards getting rid of the confusing "command" terminology. Also see PR #18610 which tackled the functional tests.

  2. in src/net.h:111 in 4f7b60e69d outdated
     107 | @@ -108,7 +108,7 @@ struct CSerializedNetMsg
     108 |      CSerializedNetMsg& operator=(const CSerializedNetMsg&) = delete;
     109 |  
     110 |      std::vector<unsigned char> data;
     111 | -    std::string command;
     112 | +    std::string msg_type;
    


    MarcoFalke commented at 6:21 PM on May 10, 2020:
        std::string m_type;
    

    According to the dev notes, members should be prefixed with m_.


    theStack commented at 6:53 PM on May 10, 2020:

    Thanks, done.

  3. theStack force-pushed on May 10, 2020
  4. DrahtBot added the label P2P on May 10, 2020
  5. DrahtBot added the label Refactoring on May 10, 2020
  6. refactor: s/command/msg_type/ in CNetMsgMaker and CSerializedNetMsg 51e9393c1f
  7. theStack force-pushed on May 10, 2020
  8. MarcoFalke commented at 10:25 PM on May 13, 2020: member

    ACK 51e9393c1f6c9eaac554f821f5327f63bd09c8cf

  9. DrahtBot cross-referenced this on May 20, 2020 from issue Implement ADDRv2 support (part of BIP155) by vasild
  10. DrahtBot commented at 8:15 PM on May 20, 2020: 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:

    • #19031 (Implement ADDRv2 support (part of BIP155) by vasild)

    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.

  11. MarcoFalke merged this on Jun 19, 2020
  12. MarcoFalke closed this on Jun 19, 2020

  13. jonatack commented at 11:01 AM on June 19, 2020: contributor

    Concept ACK, msg_type is better

  14. sidhujag referenced this in commit c47c194b1a on Jul 7, 2020
  15. theStack cross-referenced this on Aug 6, 2020 from issue Per-Peer Message Capture by troygiorshev
  16. jasonbcox referenced this in commit 0b1e6312a7 on Nov 19, 2020
  17. theStack deleted the branch on Dec 1, 2020
  18. hebasto cross-referenced this on Jan 15, 2022 from issue net, refactor: Rename CNetMessage::m_command with CNetMessage::m_type by hebasto
  19. MarcoFalke referenced this in commit 973c390298 on Jan 24, 2022
  20. sidhujag referenced this in commit b135edda87 on Jan 28, 2022
  21. bitcoin 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-05-19 06:54 UTC