mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-10 14:48:46 +02:00
Merge bitcoin/bitcoin#35145: validation: fix misleading VerifyDB summary log
1d66963749log: clarify VerifyDB summary log (ViniciusCestarii) Pull request description: The final `LogInfo` message about "No coin database inconsistencies" was printed unconditionally, even for check levels 0-2 where no coin DB verification runs and `nGoodTransactions` stays 0. Split into an always-on completion line and a coin-DB result line gated on `nCheckLevel >= 3 && !skipped_l3_checks`. Before (checklevel=1): `Verification: No coin database inconsistencies in last 6 blocks (0 transactions)` After (checklevel=1): `Verification: checked last 6 blocks at level 1` ACKs for top commit: sedited: ACK1d66963749Tree-SHA512: a6c6689cff2f1942a44764a914a1ee01c92efa51489d72f456fccaa1f9ee0640449b55600d43e7dc89d622414854d53e8dfc7e8c87fe454b06e44f76075db267
This commit is contained in:
@@ -4727,7 +4727,10 @@ VerifyDBResult CVerifyDB::VerifyDB(
|
||||
}
|
||||
}
|
||||
|
||||
LogInfo("Verification: No coin database inconsistencies in last %i blocks (%i transactions)", block_count, nGoodTransactions);
|
||||
LogInfo("Verification: checked last %i blocks at level %i", block_count, nCheckLevel);
|
||||
if (nCheckLevel >= 3 && !skipped_l3_checks) {
|
||||
LogInfo("Verification: no coin database inconsistencies (%i transactions)", nGoodTransactions);
|
||||
}
|
||||
|
||||
if (skipped_l3_checks) {
|
||||
return VerifyDBResult::SKIPPED_L3_CHECKS;
|
||||
|
||||
Reference in New Issue
Block a user