mirror of
https://github.com/dashpay/dash.git
synced 2024-12-23 19:12:47 +01:00
Merge d7e30765cc
into ad7a373529
This commit is contained in:
commit
f3382d3af7
@ -739,16 +739,14 @@ void CSigSharesManager::ProcessSigShare(PeerManager& peerman, const CSigShare& s
|
||||
// Update the time we've seen the last sigShare
|
||||
timeSeenForSessions[sigShare.GetSignHash()] = GetTime<std::chrono::seconds>().count();
|
||||
|
||||
if (!quorumNodes.empty()) {
|
||||
// don't announce and wait for other nodes to request this share and directly send it to them
|
||||
// there is no way the other nodes know about this share as this is the one created on this node
|
||||
for (auto otherNodeId : quorumNodes) {
|
||||
auto& nodeState = nodeStates[otherNodeId];
|
||||
auto& session = nodeState.GetOrCreateSessionFromShare(sigShare);
|
||||
session.quorum = quorum;
|
||||
session.requested.Set(sigShare.getQuorumMember(), true);
|
||||
session.knows.Set(sigShare.getQuorumMember(), true);
|
||||
}
|
||||
// don't announce and wait for other nodes to request this share and directly send it to them
|
||||
// there is no way the other nodes know about this share as this is the one created on this node
|
||||
for (auto otherNodeId : quorumNodes) {
|
||||
auto& nodeState = nodeStates[otherNodeId];
|
||||
auto& session = nodeState.GetOrCreateSessionFromShare(sigShare);
|
||||
session.quorum = quorum;
|
||||
session.requested.Set(sigShare.getQuorumMember(), true);
|
||||
session.knows.Set(sigShare.getQuorumMember(), true);
|
||||
}
|
||||
|
||||
size_t sigShareCount = sigShares.CountForSignHash(sigShare.GetSignHash());
|
||||
|
Loading…
Reference in New Issue
Block a user