log: reword signature validations to script verification in assumevalid log

Even though not all script verification is turned off currently (e.g. we're still doing the cheaper sigop counts), this naming is more consistent with other usages.
This commit is contained in:
Lőrinc
2025-09-16 13:21:30 -07:00
parent eaf2c46475
commit 91ac64b0a6
2 changed files with 13 additions and 5 deletions

View File

@@ -2564,7 +2564,13 @@ bool Chainstate::ConnectBlock(const CBlock& block, BlockValidationState& state,
Ticks<MillisecondsDouble>(m_chainman.time_forks) / m_chainman.num_blocks_total);
if (fScriptChecks != m_prev_script_checks_logged && GetRole() == ChainstateRole::NORMAL) {
LogInfo("%s signature validations at block #%d (%s).", fScriptChecks ? "Enabling" : "Disabling", pindex->nHeight, block_hash.ToString());
if (fScriptChecks) {
LogInfo("Enabling script verification at block #%d (%s).",
pindex->nHeight, block_hash.ToString());
} else {
LogInfo("Disabling script verification at block #%d (%s).",
pindex->nHeight, block_hash.ToString());
}
m_prev_script_checks_logged = fScriptChecks;
}