1262@@ -1263,7 +1263,7 @@ static ChainstateLoadResult InitAndLoadChainstate(
1263 }
1264 std::tie(status, error) = catch_exceptions([&] { return VerifyLoadedChainstate(chainman, options); });
1265 if (status == node::ChainstateLoadStatus::SUCCESS) {
1266- LogPrintf(" block index %15dms\n", Ticks<std::chrono::milliseconds>(SteadyClock::now() - load_block_index_start_time));
1267+ LogInfo("Block index %15dms\n", Ticks<std::chrono::milliseconds>(SteadyClock::now() - load_block_index_start_time));
I keep on forgetting that we can drop the newline now too -_-. All these log lines here after (and including) "Loading block index..."
are just kind of bad to be honest. We are definitely doing more here than loading the block index. I’m not even sure if the measured time here provides anything useful given that it varies quite a bit form run to run and we already log timestamps by default. Maybe this should rather just say "Loaded block index and chainstate"
?
Good idea,
done - also removed the weird looking
%15d
, curious what other reviewers think