Sometimes when shutting off bitcoind it can take a while to dump the mempool transaction onto the disk so
this change adds additional logging to the DumpMempool
method in kernel/mempool_persist.cpp
Motivated by #29227 this change
- adds a single new line for the amount of transactions being dumped and the amount of memory being dumped to file
This is in response to #29227 (comment)
The logs will now look like this
02024-02-09T23:41:52Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.02s)
12024-02-09T23:41:52Z scheduler thread exit
22024-02-09T23:41:52Z Writing 29 mempool transactions to file...
32024-02-09T23:41:52Z Writing 0 unbroadcast transactions to file.
42024-02-09T23:41:52Z Dumped mempool: 0.000s to copy, 0.022s to dump, 0.015 MB dumped to file
52024-02-09T23:41:52Z Flushed fee estimates to fee_estimates.dat.
62024-02-09T23:41:53Z Shutdown: done