This PR adds some additional logging to help measure performance of compact block reconstruction.
- Adds a message to the beginning of
PartiallyDownloadedBlock::InitData()
so that that the logs indicate the amount of time it takes to populate a compact block from mempool transactions. - Logs the size of the transactions which a node did not have in its mempool and was forced to request.
- Logs the size and number of transactions that a node sends to it’s peer in a
BLOCKTXN
to fulfill a compact blockGETBLOCKTXN
request.
Relevant to this discussion on delving bitcoin: https://delvingbitcoin.org/t/stats-on-compact-block-reconstructions/1052