mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
refactor: actually move out of previousQuarters.quarterHMinus*C and newQuarterMembers into quorumMembers
This commit is contained in:
parent
a59c91c6dc
commit
a701a8d5c9
@ -243,18 +243,11 @@ std::vector<std::vector<CDeterministicMNCPtr>> ComputeQuorumMembersByQuarterRota
|
||||
}
|
||||
|
||||
for (const size_t i : irange::range(nQuorums)) {
|
||||
for (const auto &m: previousQuarters.quarterHMinus3C[i]) {
|
||||
quorumMembers[i].push_back(std::move(m));
|
||||
}
|
||||
for (const auto &m: previousQuarters.quarterHMinus2C[i]) {
|
||||
quorumMembers[i].push_back(std::move(m));
|
||||
}
|
||||
for (const auto &m: previousQuarters.quarterHMinusC[i]) {
|
||||
quorumMembers[i].push_back(std::move(m));
|
||||
}
|
||||
for (const auto &m: newQuarterMembers[i]) {
|
||||
quorumMembers[i].push_back(std::move(m));
|
||||
}
|
||||
// Move elements from previous quarters into quorumMembers
|
||||
std::move(previousQuarters.quarterHMinus3C[i].begin(), previousQuarters.quarterHMinus3C[i].end(), std::back_inserter(quorumMembers[i]));
|
||||
std::move(previousQuarters.quarterHMinus2C[i].begin(), previousQuarters.quarterHMinus2C[i].end(), std::back_inserter(quorumMembers[i]));
|
||||
std::move(previousQuarters.quarterHMinusC[i].begin(), previousQuarters.quarterHMinusC[i].end(), std::back_inserter(quorumMembers[i]));
|
||||
std::move(newQuarterMembers[i].begin(), newQuarterMembers[i].end(), std::back_inserter(quorumMembers[i]));
|
||||
|
||||
if (LogAcceptCategory(BCLog::LLMQ)) {
|
||||
std::stringstream ss;
|
||||
|
Loading…
Reference in New Issue
Block a user