Skip to content

Commit

Permalink
Ignore sig share inv messages when we don't have the quorum vvec (#2733)
Browse files Browse the repository at this point in the history
* 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 UdjinM6 committed Mar 1, 2019
1 parent 080b59a commit 9eb0ca7
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 @@ -354,6 +354,13 @@ bool CSigSharesManager::ProcessMessageSigSharesInv(CNode* pfrom, const CSigShare
LogPrint("llmq", "CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n", __func__,
sessionInfo.signHash.ToString(), inv.ToString(), pfrom->id);

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->id);
return true;
}

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

0 comments on commit 9eb0ca7

Please sign in to comment.