diff --git a/src/llmq/dkgsessionhandler.cpp b/src/llmq/dkgsessionhandler.cpp index 437a745a7bbb35..35843cad5fb937 100644 --- a/src/llmq/dkgsessionhandler.cpp +++ b/src/llmq/dkgsessionhandler.cpp @@ -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(); @@ -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); }