Correct returned variable (#4809)

* Correct returned variable

* Fix
This commit is contained in:
Odysseas Gabrielides 2022-04-26 20:23:52 +03:00 committed by GitHub
parent b8c9eec34f
commit fafb1b2ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,14 +365,14 @@ std::vector<std::vector<CDeterministicMNCPtr>> CLLMQUtils::GetQuorumQuarterMembe
std::move(sortedMnsUsedAtH.begin(), sortedMnsUsedAtH.end(), std::back_inserter(sortedCombinedMns));
}
if (sortedCombinedMns.empty()) return {};
auto numQuorums = size_t(llmqParams.signingActiveQuorumCount);
auto quorumSize = size_t(llmqParams.size);
auto quarterSize = quorumSize / 4;
std::vector<std::vector<CDeterministicMNCPtr>> quarterQuorumMembers(numQuorums);
if (sortedCombinedMns.empty()) return quarterQuorumMembers;
switch (snapshot.mnSkipListMode) {
case SnapshotSkipMode::MODE_NO_SKIPPING:
{
@ -421,7 +421,7 @@ std::vector<std::vector<CDeterministicMNCPtr>> CLLMQUtils::GetQuorumQuarterMembe
case SnapshotSkipMode::MODE_NO_SKIPPING_ENTRIES: // List holds entries to be kept
case SnapshotSkipMode::MODE_ALL_SKIPPED: // Every node was skipped. Returning empty quarterQuorumMembers
default:
return {};
return quarterQuorumMembers;
}
}