fix: make the received block metrics correct#357
Conversation
Pull Request ReviewThis PR refactors block delay metric handling in the Parlia consensus path to use full millisecond-precision block timestamps derived from the header (including Lorentz-era ms data), instead of second-only timestamps. It also separates metric behavior between network-received blocks and self-mined blocks by introducing Sensitive ContentNo sensitive content detected. Security IssuesNo serious security issues detected. Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits. |
cargo-udeps 0.1.61 segfaults on nightly >= 2026-05-19 due to an incompatibility with rustc internals. Pin to the last known-good nightly to unblock CI. A follow-up should migrate to cargo-machete to remove the nightly fragility entirely. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pull Request ReviewThis PR refactors chain-delay metric handling in a Rust blockchain client (Parlia/BSC context) to improve accuracy of Sensitive ContentNo sensitive content detected. Security IssuesNo serious security issues detected. Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits. |
* fix: make receive block metrics correct * ci: pin udeps job to nightly-2026-05-11 cargo-udeps 0.1.61 segfaults on nightly >= 2026-05-19 due to an incompatibility with rustc internals. Pin to the last known-good nightly to unblock CI. A follow-up should migrate to cargo-machete to remove the nightly fragility entirely. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Description
Make the received block metrics correct to ensure the
reth_chain_delay_block_recvmetrics are accurate for more effective network latency troubleshooting.Rationale
Example
N/A.
Changes
Notable changes:
Potential Impacts
N/A.