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-
MarcoFalke commented at 8:01 am on July 19, 2022: memberDoing anything else will just lead to more verbose and inconsistent code.
-
refactor: Use chainman() helper consistently in ChainImpl fa32b1bbfd
-
fanquake added the label Refactoring on Jul 19, 2022
-
jamesob commented at 1:10 pm on July 19, 2022: memberConcept ACK, will review shortly
-
fanquake approved
-
fanquake commented at 10:19 am on July 20, 2022: memberACK fa32b1bbfd418410c47b2a33c6fa106371288138 - all instances of
Assert(m_node.chainman)
in node/interfaces replaced withchainman()
, which is the same thing. -
shaavan approved
-
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 toAssert(m_node.chainman)
0ChainstateManager& chainman() { return *Assert(m_context->chainman); }
- Verified that all instances of
Assert(m_node.chainman)
are replaced withchainman()
.
-
MarcoFalke merged this on Jul 20, 2022
-
MarcoFalke closed this on Jul 20, 2022
-
MarcoFalke deleted the branch on Jul 20, 2022
-
jonatack commented at 4:32 pm on July 20, 2022: contributorPost-merge ACK
-
sidhujag referenced this in commit 24fdb06473 on Jul 20, 2022
-
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: 2024-11-17 15:12 UTC
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: 2024-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me