Skip to content

Commit b4a4e09

Browse files
codablockpanleone
authored andcommitted
Ignore sig share inv messages when we don't have the quorum vvec (PIVX-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 <[email protected]>
1 parent a2fb276 commit b4a4e09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/llmq/quorums_signing_shares.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ bool CSigSharesManager::ProcessMessageSigSharesInv(CNode* pfrom, const CSigShare
347347
LogPrintf("llmq", "CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n", __func__,
348348
sessionInfo.signHash.ToString(), inv.ToString(), pfrom->GetId());
349349

350+
if (sessionInfo.quorum->quorumVvec == nullptr) {
351+
// TODO we should allow to ask other nodes for the quorum vvec if we missed it in the DKG
352+
LogPrintf("CSigSharesManager::%s -- we don't have the quorum vvec for %s, not requesting sig shares. node=%d\n", __func__,
353+
sessionInfo.quorumHash.ToString(), pfrom->GetId());
354+
return true;
355+
}
356+
350357
LOCK(cs);
351358
auto& nodeState = nodeStates[pfrom->GetId()];
352359
auto session = nodeState.GetSessionByRecvId(inv.sessionId);

0 commit comments

Comments
 (0)