From 2e332b5c8dc906fa08c16b13994099842f2e2f13 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 31 Aug 2023 00:26:45 +0200 Subject: [PATCH] feat(primitives): add doc for `parent_beacon_block_root` in `Header` (#4415) --- crates/primitives/src/header.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/primitives/src/header.rs b/crates/primitives/src/header.rs index 12f4e3fca8..f74707844c 100644 --- a/crates/primitives/src/header.rs +++ b/crates/primitives/src/header.rs @@ -100,8 +100,13 @@ pub struct Header { /// with above-target blob gas consumption increase this value, blocks with below-target blob /// gas consumption decrease it (bounded at 0). This was added in EIP-4844. pub excess_blob_gas: Option, - /// TODO: Docs - /// This was added in EIP-4788. + /// The hash of the parent beacon block's root is included in execution blocks, as proposed by + /// EIP-4788. + /// + /// This enables trust-minimized access to consensus state, supporting staking pools, bridges, + /// and more. + /// + /// The beacon roots contract handles root storage, enhancing Ethereum's functionalities. pub parent_beacon_block_root: Option, /// An arbitrary byte array containing data relevant to this block. This must be 32 bytes or /// fewer; formally Hx.