Skip to content

Conversation

kwvg
Copy link
Collaborator

@kwvg kwvg commented Sep 8, 2025

Additional Information

Breaking Changes

None expected.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

kwvg added 21 commits September 8, 2025 13:13
The wallet should not concern itself with masternode mode state. Client
side mixing is not available for masternodes and masternodes are no
longer allowed to have the collateral in their own local wallet, drop it.
We don't initialize mn_activeman in TestingSetup so we don't need to set
`connOptions.m_active_masternode`
ActiveContext is going to host all entities are part of masternode mode
(i.e. used by a node if it is an active masternode) and is required to
separate interactive (i.e. networking-driven) portions of consensus from
portions that can be done non-interactively/offline.
Now that CCoinJoinServer is conditionally initialized, we can remove
checks that assumed its unconditional existence.
We initialize the masternode mode context later and as it's explicitly
networking-heavy, we can move CConnman and PeerManager back into the
ctor and trim down the arguments list a fair bit.

Effectively reverts 82d1aed.
Giving write access of CRecoveredSigsDb to an external manager isn't
great but we have to do this if we want to drop CActiveMasternodeManager
from CSigSharesManager

Review with `git log -p -n1 --color-moved=dimmed_zebra`.
As ProcessRecoveredSig() triggers a NotifyRecoveredSig() notification,
we can stick the RelayRecoveredSig() into CSigSharesManager and have the
relay request processed through the notification interface instead, lets
us finally drop CActiveMasternodeManager from CSigSharesManager.
@kwvg kwvg added this to the 23 milestone Sep 8, 2025
Copy link

github-actions bot commented Sep 9, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant