Summary
Clean up the node initialization code without changing its behavior.
Changes
- Simplify initialization structure.
- Improve readability and maintainability.
- No functional or consensus changes.
Testing
Existing tests pass.
Clean up the node initialization code without changing its behavior.
Existing tests pass.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35983.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process. A summary of reviews will appear here.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Please don't open new pull requests just for tiny typo fixes or refactors, they are a drag on our integration testing infrastructure, maintainer time and reviewer time. See https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#refactoring:
Trivial pull requests or pull requests that refactor the code with no clear benefits may be immediately closed by the maintainers to reduce unnecessary workload on reviewing.
There are many more significant ways to contribute to Bitcoin! Try reviewing open pull requests, reading and testing other contirbutors' code and gaining a broader understanding of the mechanics of the project.
Sorry