From 8c341bb9ccfb1a6e0cfb990488152aa91b905be2 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Tue, 25 Jul 2023 14:40:04 -0400 Subject: [PATCH] cargo fmt (#4541) --- .../beacon_chain/src/block_verification_types.rs | 16 ++++++++-------- .../src/data_availability_checker.rs | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/beacon_node/beacon_chain/src/block_verification_types.rs b/beacon_node/beacon_chain/src/block_verification_types.rs index e80372a6d..c41090c42 100644 --- a/beacon_node/beacon_chain/src/block_verification_types.rs +++ b/beacon_node/beacon_chain/src/block_verification_types.rs @@ -17,15 +17,15 @@ use types::{ }; /// A block that has been received over RPC. It has 2 internal variants: -/// +/// /// 1. `BlockAndBlobs`: A fully available post deneb block with all the blobs available. This variant /// is only constructed after making consistency checks between blocks and blobs. /// Hence, it is fully self contained w.r.t verification. i.e. this block has all the required /// data to get verfied and imported into fork choice. -/// +/// /// 2. `Block`: This can be a fully available pre-deneb block **or** a post-deneb block that may or may /// not require blobs to be considered fully available. -/// +/// /// Note: We make a distinction over blocks received over gossip because /// in a post-deneb world, the blobs corresponding to a given block that are received /// over rpc do not contain the proposer signature for dos resistance. @@ -98,15 +98,15 @@ impl From> for RpcBlock { } } -/// A block that has gone through all pre-deneb block processing checks including block processing +/// A block that has gone through all pre-deneb block processing checks including block processing /// and execution by an EL client. This block hasn't completed data availability checks. -/// -/// +/// +/// /// It contains 2 variants: /// 1. `Available`: This block has been executed and also contains all data to consider it a /// fully available block. i.e. for post-deneb, this implies that this contains all the /// required blobs. -/// 2. `AvailabilityPending`: This block hasn't received all required blobs to consider it a +/// 2. `AvailabilityPending`: This block hasn't received all required blobs to consider it a /// fully available block. pub enum ExecutedBlock { Available(AvailableExecutedBlock), @@ -186,7 +186,7 @@ impl AvailableExecutedBlock { } /// A block that has completed all pre-deneb block processing checks, verification -/// by an EL client but does not have all requisite blob data to get imported into +/// by an EL client but does not have all requisite blob data to get imported into /// fork choice. #[derive(Encode, Decode, Clone)] pub struct AvailabilityPendingExecutedBlock { diff --git a/beacon_node/beacon_chain/src/data_availability_checker.rs b/beacon_node/beacon_chain/src/data_availability_checker.rs index 9a53a7139..b416b3788 100644 --- a/beacon_node/beacon_chain/src/data_availability_checker.rs +++ b/beacon_node/beacon_chain/src/data_availability_checker.rs @@ -339,12 +339,12 @@ pub fn make_available( } /// Makes the following checks to ensure that the list of blobs correspond block: -/// +/// /// * Check that a block is post-deneb /// * Checks that the number of blobs is equal to the length of kzg commitments in the list /// * Checks that the index, slot, root and kzg_commitment in the block match the blobs in the correct order -/// -/// Returns `Ok(())` if all consistency checks pass and an error otherwise. +/// +/// Returns `Ok(())` if all consistency checks pass and an error otherwise. pub fn consistency_checks( block: &SignedBeaconBlock, blobs: &[Arc>],