Use the block header to compute the canonical_root (#5003)

This commit is contained in:
Pawan Dhananjay
2023-12-13 14:24:36 -08:00
committed by GitHub
parent a3fb27c99b
commit a3a370302a
2 changed files with 23 additions and 2 deletions

View File

@@ -40,6 +40,10 @@ lazy_static! {
"beacon_block_processing_block_root_seconds",
"Time spent calculating the block root when processing a block."
);
pub static ref BLOCK_HEADER_PROCESSING_BLOCK_ROOT: Result<Histogram> = try_create_histogram(
"beacon_block_header_processing_block_root_seconds",
"Time spent calculating the block root for a beacon block header."
);
pub static ref BLOCK_PROCESSING_BLOB_ROOT: Result<Histogram> = try_create_histogram(
"beacon_block_processing_blob_root_seconds",
"Time spent calculating the blob root when processing a block."