From 8b143ddee919d1c6382d52690747293ed4849801 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 24 Jan 2020 17:09:25 +0300 Subject: [PATCH] Drop unused `invSet` in `CDKGSession` (#3303) --- src/llmq/quorums_dkgsession.cpp | 4 ---- src/llmq/quorums_dkgsession.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/llmq/quorums_dkgsession.cpp b/src/llmq/quorums_dkgsession.cpp index 29ba3ff6ee..b31a3bc0b6 100644 --- a/src/llmq/quorums_dkgsession.cpp +++ b/src/llmq/quorums_dkgsession.cpp @@ -280,7 +280,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGContribution& qc member->contributions.emplace(hash); CInv inv(MSG_QUORUM_CONTRIB, hash); - invSet.emplace(inv); RelayInvToParticipants(inv); quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) { @@ -547,7 +546,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGComplaint& qc, b member->complaints.emplace(hash); CInv inv(MSG_QUORUM_COMPLAINT, hash); - invSet.emplace(inv); RelayInvToParticipants(inv); quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) { @@ -762,7 +760,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGJustification& q // we always relay, even if further verification fails CInv inv(MSG_QUORUM_JUSTIFICATION, hash); - invSet.emplace(inv); RelayInvToParticipants(inv); quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) { @@ -1130,7 +1127,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGPrematureCommitm validCommitments.emplace(hash); CInv inv(MSG_QUORUM_PREMATURE_COMMITMENT, hash); - invSet.emplace(inv); RelayInvToParticipants(inv); quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) { diff --git a/src/llmq/quorums_dkgsession.h b/src/llmq/quorums_dkgsession.h index e13267fe58..9825182e8d 100644 --- a/src/llmq/quorums_dkgsession.h +++ b/src/llmq/quorums_dkgsession.h @@ -274,7 +274,6 @@ private: std::map complaints; std::map justifications; std::map prematureCommitments; - std::set invSet; std::vector pendingContributionVerifications;