refactor: Replace m_params with chainman.GetParams() #25830

pull aureleoules wants to merge 1 commits into bitcoin:master from aureleoules:2022-08-replace-m_params changing 2 files +38 −35
  1. aureleoules commented at 12:01 PM on August 12, 2022: member

    Fixes a TODO introduced in #24595. Removes m_params from CChainState class and replaces it with m_chainman.GetParams().

  2. fanquake added the label Validation on Aug 12, 2022
  3. fanquake added the label Refactoring on Aug 12, 2022
  4. DrahtBot commented at 1:11 AM on August 13, 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:

    • #25172 (refactor: use std:: prefix for std lib funcs by fanquake)
    • #20827 (During IBD, prune as much as possible until we get close to where we will eventually keep blocks by luke-jr)
    • #9245 (Drop IO priority to idle while reading blocks for peer requests and startup verification by luke-jr)

    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. DrahtBot cross-referenced this on Aug 13, 2022 from issue tidy: Enable more clang-tidy bugprone checks by aureleoules
  6. DrahtBot cross-referenced this on Aug 13, 2022 from issue Use steady clock for all millis bench logging by maflcko
  7. DrahtBot cross-referenced this on Aug 13, 2022 from issue refactor: use std:: prefix for std lib funcs by fanquake
  8. DrahtBot cross-referenced this on Aug 13, 2022 from issue During IBD, prune as much as possible until we get close to where we will eventually keep blocks by luke-jr
  9. DrahtBot cross-referenced this on Aug 13, 2022 from issue Improve runtime performance of --reindex by LarryRuane
  10. DrahtBot added the label Needs rebase on Sep 16, 2022
  11. aureleoules force-pushed on Sep 16, 2022
  12. DrahtBot removed the label Needs rebase on Sep 16, 2022
  13. DrahtBot cross-referenced this on Sep 19, 2022 from issue log: Use steady clock for bench logging by maflcko
  14. DrahtBot added the label Needs rebase on Oct 10, 2022
  15. refactor: Replace m_params with chainman.GetParams()
    Fixes a TODO introduced in #24595.
    5d3f98d278
  16. aureleoules force-pushed on Oct 10, 2022
  17. DrahtBot removed the label Needs rebase on Oct 10, 2022
  18. aureleoules closed this on Oct 12, 2022

  19. maflcko commented at 8:08 AM on October 13, 2022: member

    Why the close?

  20. aureleoules commented at 8:59 AM on October 13, 2022: member

    @MarcoFalke I was asked by @adamjonas to close this during coredev.

  21. maflcko commented at 9:27 AM on October 13, 2022: member

    It is fixing a TODO, so if that is no longer applicable, the TODO should be removed

  22. adamjonas commented at 12:39 PM on October 13, 2022: member

    @MarcoFalke the request to close was based on lack of review and, therefore, the implied lack of support. If you'd be willing to review, @aureleoules can reopen.

  23. maflcko commented at 12:46 PM on October 13, 2022: member

    sure

  24. aureleoules reopened this on Oct 13, 2022

  25. aureleoules commented at 12:50 PM on October 13, 2022: member

    Note that I could have reduced the code diff by renaming params to m_params but since params is not a class member anymore I think its more confusing.

  26. DrahtBot cross-referenced this on Oct 18, 2022 from issue Drop IO priority to idle while reading blocks for peer requests and startup verification by luke-jr
  27. maflcko commented at 8:03 AM on October 19, 2022: member

    review ACK 5d3f98d27879cd6d84b8590e947336e8d09613ed 🌎

    <details><summary>Show signature</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    review ACK 5d3f98d27879cd6d84b8590e947336e8d09613ed 🌎
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUjJ8Qv/ct7XpfKidLyXHj8qvtiMkjeM7lH4rtiwWVOi23PmFTl3UXN+CJZwuXlt
    P7onWWziczOZIJzJVVwFKgbOegIfG2QNWlVpSWsgQRYXYdCi8wRyqmsChxKUNdQ/
    +Yl2ny0CMpoEORl1rD8/wFdvBhpKbkVDl/dbCKLmz1KUxLfFDWPfcZ2VdyCrtoKr
    +jXmBUtYVGciQaD/MK638lK/AgBEy1GzbBnnBZKg8oKi729FsEzFY9C7mGFT7OMc
    RMn2hRKMdl9Vjz5ffBVp7DXC5tHTG6RJMZAIilI6xdw77BX5qFK5+HqGsOh/27sx
    sn6mA0kP+tqPxV4/lD6PgtoYpbmQN9afxVJ8zFLCOM/TU4gIbQzlApQ1iM4/x+jp
    m5E3lE0OAmWgns8YQ1ui2VkbcQhPU+0OfzoZC/3VPH5fGF5L2fW0aFsdgy2jT4Ph
    pIFZjGbXvI8m/WEok1Rps4ZEKcIqkFjK0q3l29gJILPHZNtagEf4s4zqWc7czmtd
    DiVFo5K1
    =Udt+
    -----END PGP SIGNATURE-----
    

    </details>

  28. maflcko commented at 8:05 AM on October 19, 2022: member

    In the future it might be best not to add refactoring TODOs?

  29. maflcko merged this on Oct 19, 2022
  30. maflcko closed this on Oct 19, 2022

  31. aureleoules deleted the branch on Nov 2, 2022
  32. bitcoin locked this on Nov 2, 2023

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:53 UTC