-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Move ChainstateManager options into m_options struct #25905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Move ChainstateManager options into m_options struct to simplify class initialization, organize class members, and to name external option variables differently than internal state variables. This change was originally in bitcoin#25862, but it was suggested to split off in bitcoin#25862 (comment) so it could be merged earlier and reduce conflicts with other PRs.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. 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. |
ACK 6db2c00 |
src/validation.h
Outdated
@@ -881,6 +878,7 @@ class ChainstateManager | |||
*/ | |||
RecursiveMutex& GetMutex() const LOCK_RETURNED(::cs_main) { return ::cs_main; } | |||
|
|||
Options m_options; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to remove the const
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 6db2c00 -> 7bc33a8 (pr/csmopt.1
-> pr/csmopt.2
, compare) adding const as suggested
src/validation.h
Outdated
@@ -881,6 +878,7 @@ class ChainstateManager | |||
*/ | |||
RecursiveMutex& GetMutex() const LOCK_RETURNED(::cs_main) { return ::cs_main; } | |||
|
|||
Options m_options; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 7bc33a8 |
Move
ChainstateManager
options intom_options
struct to simplify class initialization, organize class members, and to name external option variables differently than internal state variables.This change was originally in #25862, but it was suggested to split off in #25862 (comment) so it could be merged earlier and reduce conflicts with other PRs.