refactor: Consistently use context args over gArgs in node/interfaces#27239
Hidden character warning
refactor: Consistently use context args over gArgs in node/interfaces#27239fanquake merged 2 commits intobitcoin:masterfrom
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
|
Concept ACK |
ryanofsky
left a comment
There was a problem hiding this comment.
Code review ACK facbb444bf5aea2bbaa4a4246a8a2c661d9bf314. Thanks for the cleanup. Could s/consistenly/consistently/ too
facbb44 to
fa3e9b4
Compare
|
re-ACK facbb44 |
|
@TheCharlatan note that you've re-ACK'd the wrong commit hash. |
…gs in node/interfaces fa3e9b4 refactor: Consistently use args over gArgs in init.cpp (MarcoFalke) fa89112 refactor: Consistently use context args over gArgs in node/interfaces (MarcoFalke) Pull request description: Currently `node/interfaces.cpp` uses a mix of `gArgs` vs `m_context->args`. This is fine, because outside of tests those should be identical. However, it makes the code inconsistent and harder to use in tests. Fix that by using `args` from the context consistently. Do the same in `init.cpp`, where `gArgs` and `args` are inconsistently used in the same scope or even line. ACKs for top commit: ryanofsky: Code review ACK fa3e9b4 Tree-SHA512: bcd52f176794ebb1ecb9e1922411f7b84d212ae13bad314a1961b85f3077f645fca71fb0124c0889ebfdd8b59a0903b99b9985b1a4fb8f152aa6d7f0126fe5c7
Currently
node/interfaces.cppuses a mix ofgArgsvsm_context->args. This is fine, because outside of tests those should be identical. However, it makes the code inconsistent and harder to use in tests.Fix that by using
argsfrom the context consistently. Do the same ininit.cpp, wheregArgsandargsare inconsistently used in the same scope or even line.