Skip to content

Commit

Permalink
fix: let watch quorum to be connected to single-node-quorum
Browse files Browse the repository at this point in the history
Not sure if that's really useful, but can be changed
  • Loading branch information
knst committed Nov 29, 2024
1 parent 3e2edf6 commit 52f567c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llmq/dkgsessionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ void CDKGSessionHandler::HandleDKGRound()
return changed;
});

const auto tip_mn_list = m_dmnman.GetListAtChainTip();
utils::EnsureQuorumConnections(params, connman, m_dmnman, m_sporkman, tip_mn_list, pQuorumBaseBlockIndex, curSession->myProTxHash, /* is_masternode = */ m_mn_activeman != nullptr);
if (params.size == 1) // TODO: add here check AreWeMember instead checking is-null for final-commitment
{
auto finalCommitment = curSession->FinalizeSingleCommitment();
Expand All @@ -575,8 +577,6 @@ void CDKGSessionHandler::HandleDKGRound()
return;
}

const auto tip_mn_list = m_dmnman.GetListAtChainTip();
utils::EnsureQuorumConnections(params, connman, m_dmnman, m_sporkman, tip_mn_list, pQuorumBaseBlockIndex, curSession->myProTxHash, /* is_masternode = */ m_mn_activeman != nullptr);
if (curSession->AreWeMember()) {
utils::AddQuorumProbeConnections(params, connman, m_dmnman, m_mn_metaman, m_sporkman, tip_mn_list, pQuorumBaseBlockIndex, curSession->myProTxHash);
}
Expand Down

0 comments on commit 52f567c

Please sign in to comment.