Repository navigation
refactor: split off governance masternode-only logic to GovernanceSigner, drop Relay()s and use periodic relay instead, minor cleanup - #6838
Merged
Conversation
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: drop
fMasternodeModeglobal, create new context for masternode mode-only logic (ActiveContext), move spun-off signers and EHF signals handler #6828Depends on fix: use
std::atomicto protect connected manager/signer pointers, check beforequeuemanaccess, update P2P message map in tests #6842Depends on chore!: merge bitcoin#28753, partial bitcoin#28195 (bump
MIN_PEER_PROTO_VERSIONto70221) #6877Dependency for refactor: update lock annotations for
CGovernanceObjectandGovernanceStore, move away fromRecursiveMutexes #6849To reduce the proliferation of
PeerManagerin governance logic, relaying has been centralized toCGovernanceManagerand now done through a scheduled task that processes a queue of requests. This reduces the amount of code that needs to fetch a reference toPeerManagerin order to queue a message for relay and brings us closer to dropping it as a member in other objects.Likewise, to reduce the references to
CActiveMasternodeManager, signing logic is consolidated toSignBasic()with the objects using simple getter/setters (or direct assignment) where applicable.Breaking Changes
None expected.
Checklist