forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: extract CActiveMasternodeManager from LLMQContext (2/n, CQuorumManager handler separation)
#7063
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
Draft
kwvg
wants to merge
41
commits into
dashpay:develop
Choose a base branch
from
kwvg:active_p3
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dash-chainstate may not have ArgsManager, we should try and resolve the expected value before moving to chainstate logic.
Same rationale as previous commit.
Same rationale as previous commit.
Same rationale as previous commit.
The context that creates the signer should register the listener rather than relying on the timing being exactly right on when Start() is called by the controlling manager. Also: - Use more descriptive function names replacing Start()/Stop() - Fixup order of events in ActiveContext c/dtor and Start()/Stop()
The `ConnectManager` approach is no longer needed.
Also: - Drop unneeded argument from LLMQContext::Start() - Drop LLMQContext::Interrupt() that does nothing
We are going to modify PeerManager multiple times, this should make the diffs that'll attract smaller.
Needed when `CActiveMasternodeManager` is moved to `ActiveContext`
Review with `git log -p -n1 --color-moved=dimmed_zebra`.
Also gives us the help text for `gobject list-prepared`
Also gives us the help text for `gobject {diff,list}`
As we're isolating watch-only and masternode mode logic, we won't have access to the DKG debug object anymore, restrict access in preparation.
`mapQuorumDataRequests` isn't used outside `CQuorumManager` and a `RecursiveMutex` is unnecessary for the usage pattern
These subroutines do nothing unless we are in masternode mode so we need to extract them in order to isolate it from regular mode.
Also: - Drop avoidable `CActiveMasternodeManager&` arg by taking ref of hash we care about
Review with `git log -p -n1 --color-moved=dimmed_zebra`.
5 tasks
|
This is done to remove m_mn_activeman calls from within the worker to allow us to run it in watch-only mode.
Needed to split logic based on watch-only or masternode-mode in next commit.
Review with `git log -p -n1 --color-moved=dimmed_zebra`.
Right now we have a circular dependency between `CQuorumManager`'s TU and the handler's TU's but we also house common code in the former, we need to split it out before we can close the gap. Review with `git log -p -n1 --color-moved=dimmed_zebra`.
Handlers are initialized from contexts with complete knowledge of P2P, so we can trim down the arguments passed a fair bit. Also: - Move `UpdatedBlockTip()` to handler parent contexts and out of `CQuorumManager`
We need to split up the cache warming thread with the rest of the tasks given the thread pool used by the handlers as we start to isolate impl. details of the parent.
5 tasks
|
This pull request has conflicts, please rebase. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional Information
Depends on refactor(rpc): add watch-only/masternode mode restrictions for
quorum dkg{info,status}, moveCDKGDebugManagerto{Active,Observer}Context#7062Dependency for refactor: extract
CActiveMasternodeManagerfromLLMQContext(3/n, DKG session isolation,ActiveContextconsolidation) #7065Breaking Changes
None expected.
Checklist