aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-10-04 14:45:08 +1000
committerAnthony Towns <aj@erisian.com.au>2021-10-11 21:45:49 +1000
commitb5950dd59ca3e144721a5f15568a65be43bd2f20 (patch)
tree9d9c9e3502cc55f469c8d5bdd6c75aebe63602f4 /src
parent31b2b802b5b8f214e91ec47fbc953c6ca95c7cf9 (diff)
downloadbitcoin-b5950dd59ca3e144721a5f15568a65be43bd2f20.tar.xz
validation: put coins cache write log into bench debug log
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 33ec71b6a2..4b9a61320c 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2029,8 +2029,8 @@ bool CChainState::FlushStateToDisk(
}
// Flush best chain related state. This can only be done if the blocks / block index write was also done.
if (fDoFullFlush && !CoinsTip().GetBestBlock().IsNull()) {
- LOG_TIME_SECONDS(strprintf("write coins cache to disk (%d coins, %.2fkB)",
- coins_count, coins_mem_usage / 1000));
+ LOG_TIME_MILLIS_WITH_CATEGORY(strprintf("write coins cache to disk (%d coins, %.2fkB)",
+ coins_count, coins_mem_usage / 1000), BCLog::BENCH);
// Typical Coin structures on disk are around 48 bytes in size.
// Pushing a new one to the database can cause it to be written