You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove m_is_test_chain, use ChainType directly #28376
m_is_test_chain is a bool, which has the meaning m_chain_type!=MAIN. This is just bloats the code with test-only code, so it should be removed and be replaced by the equivalent meaning. See the output of git grep m_is_test_chain and the suggestion #28316 (comment)
Possible solution
Useful Skills
Compiling Bitcoin Core from source
Running the C++ unit tests and the Python functional tests
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.
Concept NACK. Someday, albeit perhaps not the near future, Bitcoin may have multiple non-test blockchains. No reason to work in the opposite direction.
If someone writes a patch to support multiple non-test blockchains, massive changes are needed, and a trivial one-line (or four-line) diff should be least of all problems.
I still agree with the changes, but let's move the discussion to #28379. No need to have two threads going on for one thing.
Activity
[-]Remove m_is_test_chain[/-][+]Remove m_is_test_chain, use ChainType directly[/+]BrandonOdiwuor commentedon Aug 31, 2023
would like to work on this
luke-jr commentedon Sep 5, 2023
Concept NACK. Someday, albeit perhaps not the near future, Bitcoin may have multiple non-test blockchains. No reason to work in the opposite direction.
maflcko commentedon Sep 6, 2023
If someone writes a patch to support multiple non-test blockchains, massive changes are needed, and a trivial one-line (or four-line) diff should be least of all problems.
I still agree with the changes, but let's move the discussion to #28379. No need to have two threads going on for one thing.
Merge #28379: Refactor: Remove m_is_test_chain