Skip to content

Commit

Permalink
Ignore sig share inv messages when we don't have the quorum vvec (PIV…
Browse files Browse the repository at this point in the history
…X-Project#2733)

* Ignore sig share inv messages when we don't have the quorum vvec

* Update src/llmq/quorums_signing_shares.cpp

Co-Authored-By: codablock <ablock84@gmail.com>
  • Loading branch information
codablock authored and panleone committed Oct 29, 2024
1 parent a2fb276 commit b4a4e09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/llmq/quorums_signing_shares.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@ bool CSigSharesManager::ProcessMessageSigSharesInv(CNode* pfrom, const CSigShare
LogPrintf("llmq", "CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n", __func__,
sessionInfo.signHash.ToString(), inv.ToString(), pfrom->GetId());

if (sessionInfo.quorum->quorumVvec == nullptr) {
// TODO we should allow to ask other nodes for the quorum vvec if we missed it in the DKG
LogPrintf("CSigSharesManager::%s -- we don't have the quorum vvec for %s, not requesting sig shares. node=%d\n", __func__,
sessionInfo.quorumHash.ToString(), pfrom->GetId());
return true;
}

LOCK(cs);
auto& nodeState = nodeStates[pfrom->GetId()];
auto session = nodeState.GetSessionByRecvId(inv.sessionId);
Expand Down

0 comments on commit b4a4e09

Please sign in to comment.