Skip to content

Commit 8b143dd

Browse files
committed
Drop unused invSet in CDKGSession (#3303)
1 parent 87e54c8 commit 8b143dd

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/llmq/quorums_dkgsession.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGContribution& qc
280280
member->contributions.emplace(hash);
281281

282282
CInv inv(MSG_QUORUM_CONTRIB, hash);
283-
invSet.emplace(inv);
284283
RelayInvToParticipants(inv);
285284

286285
quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) {
@@ -547,7 +546,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGComplaint& qc, b
547546
member->complaints.emplace(hash);
548547

549548
CInv inv(MSG_QUORUM_COMPLAINT, hash);
550-
invSet.emplace(inv);
551549
RelayInvToParticipants(inv);
552550

553551
quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) {
@@ -762,7 +760,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGJustification& q
762760

763761
// we always relay, even if further verification fails
764762
CInv inv(MSG_QUORUM_JUSTIFICATION, hash);
765-
invSet.emplace(inv);
766763
RelayInvToParticipants(inv);
767764

768765
quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) {
@@ -1130,7 +1127,6 @@ void CDKGSession::ReceiveMessage(const uint256& hash, const CDKGPrematureCommitm
11301127
validCommitments.emplace(hash);
11311128

11321129
CInv inv(MSG_QUORUM_PREMATURE_COMMITMENT, hash);
1133-
invSet.emplace(inv);
11341130
RelayInvToParticipants(inv);
11351131

11361132
quorumDKGDebugManager->UpdateLocalMemberStatus(params.type, member->idx, [&](CDKGDebugMemberStatus& status) {

src/llmq/quorums_dkgsession.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ class CDKGSession
274274
std::map<uint256, CDKGComplaint> complaints;
275275
std::map<uint256, CDKGJustification> justifications;
276276
std::map<uint256, CDKGPrematureCommitment> prematureCommitments;
277-
std::set<CInv> invSet;
278277

279278
std::vector<size_t> pendingContributionVerifications;
280279

0 commit comments

Comments
 (0)