fix(consensus)!: Rotation member computation fix (#5085)

This commit is contained in:
Odysseas Gabrielides 2022-12-01 18:33:47 +02:00 committed by pasta
parent e7bd9eb524
commit 4e69bc4bc5
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -258,6 +258,9 @@ std::vector<std::vector<CDeterministicMNCPtr>> BuildNewQuorumQuarterMembers(cons
for (auto i = 0; i < nQuorums; ++i) {
for (const auto& mn : previousQuarters.quarterHMinusC[i]) {
if (!allMns.HasMN(mn->proTxHash)) {
continue;
}
if (allMns.IsMNPoSeBanned(mn->proTxHash)) {
continue;
}
@ -271,6 +274,9 @@ std::vector<std::vector<CDeterministicMNCPtr>> BuildNewQuorumQuarterMembers(cons
}
}
for (const auto& mn : previousQuarters.quarterHMinus2C[i]) {
if (!allMns.HasMN(mn->proTxHash)) {
continue;
}
if (allMns.IsMNPoSeBanned(mn->proTxHash)) {
continue;
}
@ -284,6 +290,9 @@ std::vector<std::vector<CDeterministicMNCPtr>> BuildNewQuorumQuarterMembers(cons
}
}
for (const auto& mn : previousQuarters.quarterHMinus3C[i]) {
if (!allMns.HasMN(mn->proTxHash)) {
continue;
}
if (allMns.IsMNPoSeBanned(mn->proTxHash)) {
continue;
}
@ -323,7 +332,7 @@ std::vector<std::vector<CDeterministicMNCPtr>> BuildNewQuorumQuarterMembers(cons
ss << m->proTxHash.ToString().substr(0, 4) << "|";
}
ss << "]";
LogPrint(BCLog::LLMQ, "BuildNewQuorumQuarterMembers h[%d] sortedCombinedMnsList[%s]\n",
LogPrint(BCLog::LLMQ, "BuildNewQuorumQuarterMembers h[%d] sortedCombinedMns[%s]\n",
pQuorumBaseBlockIndex->nHeight, ss.str());
}