chore: add comment to PendingComponents (#7979)

Adds doc comment


  


Co-Authored-By: Kevaundray Wedderburn <kevtheappdev@gmail.com>

Co-Authored-By: Jimmy Chen <jimmy@sigmaprime.io>
This commit is contained in:
kevaundray
2025-09-10 14:48:11 +01:00
committed by GitHub
parent ee1b6bc81b
commit f71d69755d

View File

@@ -26,6 +26,15 @@ use types::{
///
/// The blobs are all gossip and kzg verified.
/// The block has completed all verifications except the availability check.
///
/// There are currently three distinct hardfork eras that one should take note of:
/// - Pre-Deneb: No availability requirements (Block is immediately available)
/// - Post-Deneb, Pre-PeerDAS: Blobs are needed, but columns are not for the availability check
/// - Post-PeerDAS: Columns are needed, but blobs are not for the availability check
///
/// Note: from this, one can immediately see that `verified_blobs` and `verified_data_columns`
/// are mutually exclusive. i.e. If we are verifying columns to determine a block's availability
/// we are ignoring the `verified_blobs` field.
pub struct PendingComponents<E: EthSpec> {
pub block_root: Hash256,
pub verified_blobs: RuntimeFixedVector<Option<KzgVerifiedBlob<E>>>,