Skip to content

cmpctblock: Precise compact block metric - #33

Draft
optout21 wants to merge 1 commit into
masterfrom
2611-cmpctblock-metric
Draft

optout21 wants to merge 1 commit into
masterfrom
2611-cmpctblock-metric

Conversation

@optout21

Copy link
Copy Markdown
Owner

Prototype a more precise compact-block metric
Related to bitcoin#35558

Record, per block, the time from the first byte of the first message
announcing it (CMPCTBLOCK, HEADERS or INV, from any peer) to our own
announcements of it: the fast high-bandwidth CMPCTBLOCK sent from
NewPoWValidBlock, and the first announcement after validation sent from
SendMessages (HEADERS, INV or CMPCTBLOCK).

Intermediate points are logged too: first CMPCTBLOCK received (first and
last byte), reconstruction (and whether GETBLOCKTXN was needed), PoW-valid
and fully validated. One line per block is logged under the cmpctblock
category, with offsets in microseconds since the start.

To get the first-byte time, CNode records when the first byte of each
incoming message is read and passes it in CNetMessage::m_time_first_byte.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant