mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix(consensus)!: Rotation member computation fix (#5085)
This commit is contained in:
parent
e7bd9eb524
commit
4e69bc4bc5
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user