Skip to content

Commit 65c33ea

Browse files
committed
fix: correct BLS scheme setting in MigrateLegacyDiffs() when nVersion is present
1 parent d56bff5 commit 65c33ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/evo/deterministicmns.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,9 +1496,9 @@ bool CDeterministicMNManager::MigrateLegacyDiffs(const CBlockIndex* const tip_in
14961496
stateDiff.fields |= CDeterministicMNStateDiff::Field_nVersion;
14971497
stateDiff.state.nVersion = dmn->pdmnState->nVersion;
14981498
}
1499-
if (stateDiff.fields & CDeterministicMNStateDiff::Field_pubKeyOperator) {
1500-
stateDiff.state.pubKeyOperator.SetLegacy(stateDiff.state.nVersion == ProTxVersion::LegacyBLS);
1501-
}
1499+
}
1500+
if (stateDiff.fields & CDeterministicMNStateDiff::Field_pubKeyOperator) {
1501+
stateDiff.state.pubKeyOperator.SetLegacy(stateDiff.state.nVersion == ProTxVersion::LegacyBLS);
15021502
}
15031503
convertedDiff.updatedMNs.emplace(internalId, stateDiff);
15041504
}

0 commit comments

Comments
 (0)