mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Move spork21 condition into VerifyConnectionAndMinProtoVersions
This commit is contained in:
parent
a3c1fce551
commit
88d4f551c9
@ -438,15 +438,17 @@ void CDKGSession::VerifyAndComplain(CDKGPendingMessages& pendingMessages)
|
||||
logger.Batch("verified contributions. time=%d", t1.count());
|
||||
logger.Flush();
|
||||
|
||||
if (sporkManager.IsSporkActive(SPORK_21_QUORUM_ALL_CONNECTED)) {
|
||||
VerifyConnectionAndMinProtoVersions();
|
||||
}
|
||||
|
||||
SendComplaint(pendingMessages);
|
||||
}
|
||||
|
||||
void CDKGSession::VerifyConnectionAndMinProtoVersions()
|
||||
{
|
||||
if (!sporkManager.IsSporkActive(SPORK_21_QUORUM_ALL_CONNECTED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
CDKGLogger logger(*this, __func__);
|
||||
|
||||
std::unordered_map<uint256, int, StaticSaltedHasher> protoMap;
|
||||
|
Loading…
Reference in New Issue
Block a user