Bugfix: Include unknown-signal warnings in debug log

This commit is contained in:
Luke Dashjr 2024-01-05 20:25:43 +00:00
parent 5282a40197
commit 4f5f6c755a

View File

@ -2785,6 +2785,7 @@ void Chainstate::UpdateTip(const CBlockIndex* pindexNew)
auto strWarning = _("Warning: Unrecognised block version being mined! Unknown rules may or may not be in effect"); auto strWarning = _("Warning: Unrecognised block version being mined! Unknown rules may or may not be in effect");
// notify GetWarnings(), called by Qt and the JSON-RPC code to warn the user: // notify GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
m_chainman.GetNotifications().warning(strWarning); m_chainman.GetNotifications().warning(strWarning);
AppendWarning(warning_messages, strWarning);
} }
} }
UpdateTipLog(coins_tip, pindexNew, params, __func__, "", warning_messages.original); UpdateTipLog(coins_tip, pindexNew, params, __func__, "", warning_messages.original);