lighthouse/consensus
Paul Hauner c3e5053612 Reduce false positive logging for late builder blocks (#4073)
## Issue Addressed

NA

## Proposed Changes

When producing a block from a builder, there are two points where we could consider the block "broadcast":

1. When the blinded block is published to the builder.
2. When the un-blinded block is published to the P2P network (this is always *after* the previous step).

Our logging for late block broadcasts was using (2) for builder-blocks, which was creating a lot of false-positive logs. This is because the builder publishes the block on the P2P network themselves before returning it to us and we perform (2). For clarity, the logs were false-positives because we claim that the block was published late by us when it was actually published earlier by the builder.

This PR changes our logging behavior so we do our logging at (1) instead. It also updates our metrics for block broadcast to distinguish between local and builder blocks. I believe the metrics change will be natively compatible with existing Grafana dashboards.

## Additional Info

One could argue that the builder *should* return the block to us faster, however that's not the case. I think it's more important that we don't desensitize users with false-positives.
2023-03-17 00:44:03 +00:00
..
cached_tree_hash Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
fork_choice Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
int_to_bytes Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
merkle_proof Verify execution block hashes during finalized sync (#3794) 2023-01-09 03:11:59 +00:00
proto_array Merge remote-tracking branch 'origin/unstable' into capella-merge 2023-02-14 12:07:27 +11:00
safe_arith Inline safe_arith methods (#3229) 2022-05-31 06:09:12 +00:00
serde_utils Tweaks to reward APIs (#3957) 2023-02-10 06:19:42 +00:00
ssz Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
ssz_derive Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
ssz_types Suggestions for Capella execution_layer (#3983) 2023-02-17 11:58:33 +11:00
state_processing Clean capella (#4019) 2023-03-01 03:19:02 +00:00
swap_or_not_shuffle Verify execution block hashes during finalized sync (#3794) 2023-01-09 03:11:59 +00:00
tree_hash Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
tree_hash_derive Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
types Reduce false positive logging for late builder blocks (#4073) 2023-03-17 00:44:03 +00:00