refactor: Use chainman() helper consistently in ChainImpl #25638

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2207-chainman-🕉 changing 1 files +19 −19
  1. MarcoFalke commented at 8:01 AM on July 19, 2022: member

    Doing anything else will just lead to more verbose and inconsistent code.

  2. refactor: Use chainman() helper consistently in ChainImpl fa32b1bbfd
  3. MarcoFalke cross-referenced this on Jul 19, 2022 from issue wallet: avoid rescans under assumed-valid blocks by jamesob
  4. fanquake added the label Refactoring on Jul 19, 2022
  5. jamesob commented at 1:10 PM on July 19, 2022: member

    Concept ACK, will review shortly

  6. fanquake approved
  7. fanquake commented at 10:19 AM on July 20, 2022: member

    ACK fa32b1bbfd418410c47b2a33c6fa106371288138 - all instances of Assert(m_node.chainman) in node/interfaces replaced with chainman(), which is the same thing.

  8. shaavan approved
  9. shaavan commented at 12:20 PM on July 20, 2022: contributor

    Code Review ACK fa32b1bbfd418410c47b2a33c6fa106371288138

    • I agree with making the code less verbose while maintaining the same logic behind it.
    • Verified that using chainman() is equivalent to Assert(m_node.chainman)
    ChainstateManager& chainman() { return *Assert(m_context->chainman); }
    
    • Verified that all instances of Assert(m_node.chainman) are replaced with chainman().
  10. MarcoFalke merged this on Jul 20, 2022
  11. MarcoFalke closed this on Jul 20, 2022

  12. MarcoFalke deleted the branch on Jul 20, 2022
  13. jonatack cross-referenced this on Jul 20, 2022 from issue refactor: make all NodeImpl/ChainImpl/ExternalSignerImpl members public, rm temporaries, simplify by jonatack
  14. jonatack commented at 4:32 PM on July 20, 2022: contributor

    Post-merge ACK

  15. sidhujag referenced this in commit 24fdb06473 on Jul 20, 2022
  16. bitcoin locked this on Jul 20, 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