Ignore sig share inv messages when we don't have the quorum vvec (#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>
This commit is contained in:
parent
080b59a573
commit
9eb0ca7040
@ -354,6 +354,13 @@ bool CSigSharesManager::ProcessMessageSigSharesInv(CNode* pfrom, const CSigShare
|
|||||||
LogPrint("llmq", "CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n", __func__,
|
LogPrint("llmq", "CSigSharesManager::%s -- signHash=%s, inv={%s}, node=%d\n", __func__,
|
||||||
sessionInfo.signHash.ToString(), inv.ToString(), pfrom->id);
|
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);
|
LOCK(cs);
|
||||||
auto& nodeState = nodeStates[pfrom->id];
|
auto& nodeState = nodeStates[pfrom->id];
|
||||||
auto session = nodeState.GetSessionByRecvId(inv.sessionId);
|
auto session = nodeState.GetSessionByRecvId(inv.sessionId);
|
||||||
|
Loading…
Reference in New Issue
Block a user