-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: remove circular dependency governance/object over governance/classes #6318
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
refactor: remove circular dependency governance/object over governance/classes #6318
Conversation
5ecd62c to
e10e3b3
Compare
|
Not sure I understand the reason for 7bb236e. Why would we want this? |
This commit aims 2 reasons:
1st one (break circular dependency over PeerManager) is not done yet, that's just a preparartion This commit can be move to own PR in theory, or even be split to 2 commits (CMasternodeSync, PeerManager), but I'd prefer to don't do it to avoid multiple conflicts resolving |
|
How about 05a717b instead? |
e10e3b3 to
8f02803
Compare
That looks good, I replaced my commit to this one; changes related to PeerManager will go to other PR |
…fety analysis over FindGovernanceObject
There's only code move, no changes. For review use `git show --color-moved=dimmed-zebra`
8f02803 to
2e36832
Compare
PastaPastaPasta
left a comment
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.
generally LGTM 2e36832
UdjinM6
left a comment
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.
utACK 2e36832
PastaPastaPasta
left a comment
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.
utACK 2e36832
Issue being fixed or feature implemented
This PR is preparation for bitcoin#19668, otherwise impossible to make lock annotations for CGovernanceManager properly.
What was done?
CSuperblock::GetGovernanceObjectwhich makes a lot of mess with annotations ofgovman.csAnd minor relevant improvements: moved ScopedLockBool from header to implementation, added multiple
constfor methods, added one more fileflat-database.hto non-backported listHow Has This Been Tested?
Run unit and functional tests.
Breaking Changes
N/A
Checklist: