net: [refactor] Prefer integral types in CNodeStats #20786

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2012-net changing 3 files +8 −7
  1. MarcoFalke commented at 3:15 PM on December 28, 2020: member

    Currently, strings are stored for what are actually integral (strong) enum types. This is fine, because the strings are only used as-is for the debug log and RPC. However, it complicates using them in the GUI. User facing strings in the GUI should be translated and only string literals can be picked up for translation, not runtime std::strings.

    Fix that by removing the std::string members and replace them by strong enum integral types.

  2. MarcoFalke commented at 3:16 PM on December 28, 2020: member

    Picked up from #20778 and #20779 . Credits go to @jonatack

    <!-- https://cirrus-ci.com/build/4717795785048064

  3. fanquake added the label P2P on Dec 28, 2020
  4. fanquake added the label Refactoring on Dec 28, 2020
  5. DrahtBot commented at 5:09 PM on December 28, 2020: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.

  6. DrahtBot cross-referenced this on Dec 28, 2020 from issue refactor, net: Increase CNode data member encapsulation by hebasto
  7. DrahtBot cross-referenced this on Dec 28, 2020 from issue net: assert CNode::m_inbound_onion is inbound in ctor, add getter, unit tests by jonatack
  8. DrahtBot cross-referenced this on Dec 28, 2020 from issue multiprocess: Add bitcoin-wallet -ipcconnect option by ryanofsky
  9. practicalswift commented at 9:05 PM on December 28, 2020: contributor

    Concept ACK

  10. DrahtBot cross-referenced this on Dec 28, 2020 from issue Multiprocess bitcoin by ryanofsky
  11. promag commented at 10:32 PM on December 28, 2020: member

    ACK 7f126f2da6.

  12. MarcoFalke force-pushed on Dec 29, 2020
  13. MarcoFalke force-pushed on Dec 29, 2020
  14. MarcoFalke force-pushed on Dec 29, 2020
  15. MarcoFalke force-pushed on Dec 29, 2020
  16. DrahtBot cross-referenced this on Dec 29, 2020 from issue Net: Move ping data to net_processing by jnewbery
  17. ajtowns commented at 2:05 AM on December 30, 2020: contributor

    Concept ACK.

  18. SoraKohaku commented at 3:17 AM on December 30, 2020: none

    Rebased ok.

  19. DrahtBot added the label Needs rebase on Jan 2, 2021
  20. MarcoFalke force-pushed on Jan 2, 2021
  21. DrahtBot removed the label Needs rebase on Jan 2, 2021
  22. promag approved
  23. promag commented at 6:21 PM on January 2, 2021: member

    Code review ACK 6e7e053a94829dbbdcede5cc27c78142dca85aef.

  24. DrahtBot cross-referenced this on Jan 6, 2021 from issue net: Move SocketSendData lock annotation to header by MarcoFalke
  25. Expose integral m_conn_type in CNodeStats, remove m_conn_type_string faecb74562
  26. MarcoFalke force-pushed on Jan 7, 2021
  27. MarcoFalke commented at 2:20 PM on January 7, 2021: member

    Rebased due to trivial conflict in adjacent line

  28. bitcoin deleted a comment on Jan 7, 2021
  29. jonatack commented at 7:39 PM on January 7, 2021: contributor

    Code review ACK faecb74562d012a336837d3b39572c235ad2eb9d

  30. theStack approved
  31. theStack commented at 2:12 PM on January 8, 2021: contributor

    LGTM Code review ACK faecb74562d012a336837d3b39572c235ad2eb9d 🌲

  32. MarcoFalke merged this on Jan 8, 2021
  33. MarcoFalke closed this on Jan 8, 2021

  34. MarcoFalke deleted the branch on Jan 8, 2021
  35. jonatack cross-referenced this on Jan 8, 2021 from issue Peer details: replace Direction with Connection Type by jonatack
  36. sidhujag referenced this in commit 5e1af32137 on Jan 8, 2021
  37. luke-jr referenced this in commit 11a9378aad on Jan 28, 2021
  38. bitcoin locked this on Aug 16, 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-20 06:54 UTC