docs: clarify pending pending_block build_block docs (#20800)

This commit is contained in:
phrwlk
2026-01-07 16:09:54 +02:00
committed by GitHub
parent 78f2685ee9
commit 8d19a36492

View File

@@ -216,12 +216,13 @@ pub trait LoadPendingBlock:
}
}
/// Builds a pending block using the configured provider and pool.
/// Builds a locally derived pending block using the configured provider and pool.
///
/// If the origin is the actual pending block, the block is built with withdrawals.
/// This is used when no execution-layer pending block is available and a pending block is
/// derived from the latest canonical header, using the provided parent.
///
/// After Cancun, if the origin is the actual pending block, the block includes the EIP-4788 pre
/// block contract call using the parent beacon block root received from the CL.
/// Withdrawals and any fork-specific behavior (such as EIP-4788 pre-block contract calls) are
/// determined by the EVM environment and chain specification used during construction.
fn build_block(
&self,
parent: &SealedHeader<ProviderHeader<Self::Provider>>,