Make protocol change warning clearer

This commit is contained in:
Luke Dashjr 2024-01-05 20:49:00 +00:00
parent a2405f7347
commit c38f2685f4

View File

@ -3000,7 +3000,7 @@ void Chainstate::UpdateTip(const CBlockIndex* pindexNew)
WarningBitsConditionChecker checker(m_chainman, bit); WarningBitsConditionChecker checker(m_chainman, bit);
ThresholdState state = checker.GetStateFor(pindex, params.GetConsensus(), m_chainman.m_warningcache.at(bit)); ThresholdState state = checker.GetStateFor(pindex, params.GetConsensus(), m_chainman.m_warningcache.at(bit));
if (state == ThresholdState::ACTIVE || state == ThresholdState::LOCKED_IN) { if (state == ThresholdState::ACTIVE || state == ThresholdState::LOCKED_IN) {
const bilingual_str warning = strprintf(_("Unknown new rules activated (versionbit %i)"), bit); const bilingual_str warning = strprintf(_("WARNING: Unknown new rules activated (versionbit %i) - this software is not secure"), bit);
warning_messages.push_back(warning); warning_messages.push_back(warning);
} }
} }