From 88d4f551c95cd1d95bd9c81565491a27d993ae43 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Tue, 31 Mar 2020 07:11:27 +0200 Subject: [PATCH] Move spork21 condition into VerifyConnectionAndMinProtoVersions --- src/llmq/quorums_dkgsession.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/llmq/quorums_dkgsession.cpp b/src/llmq/quorums_dkgsession.cpp index e75a03ad83..4a500cbe4f 100644 --- a/src/llmq/quorums_dkgsession.cpp +++ b/src/llmq/quorums_dkgsession.cpp @@ -438,15 +438,17 @@ void CDKGSession::VerifyAndComplain(CDKGPendingMessages& pendingMessages) logger.Batch("verified contributions. time=%d", t1.count()); logger.Flush(); - if (sporkManager.IsSporkActive(SPORK_21_QUORUM_ALL_CONNECTED)) { - VerifyConnectionAndMinProtoVersions(); - } + VerifyConnectionAndMinProtoVersions(); SendComplaint(pendingMessages); } void CDKGSession::VerifyConnectionAndMinProtoVersions() { + if (!sporkManager.IsSporkActive(SPORK_21_QUORUM_ALL_CONNECTED)) { + return; + } + CDKGLogger logger(*this, __func__); std::unordered_map protoMap;