From 91efb9d4c780b55025c3793a67bd9dacc1b2c924 Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Wed, 5 Oct 2022 02:56:55 -0500 Subject: [PATCH] Add todos --- beacon_node/beacon_chain/src/blob_verification.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon_node/beacon_chain/src/blob_verification.rs b/beacon_node/beacon_chain/src/blob_verification.rs index 18708aa5f..90709d581 100644 --- a/beacon_node/beacon_chain/src/blob_verification.rs +++ b/beacon_node/beacon_chain/src/blob_verification.rs @@ -105,6 +105,7 @@ impl<'a, T: BeaconChainTypes> VerifiedBlobsSidecar<'a, T> { chain: &BeaconChain, ) -> Result { let blob_slot = blob_sidecar.message.beacon_block_slot; + let blob_root = blob_sidecar.message.beacon_block_root; // Do not gossip or process blobs from future or past slots. let latest_permissible_slot = chain .slot_clock @@ -117,6 +118,9 @@ impl<'a, T: BeaconChainTypes> VerifiedBlobsSidecar<'a, T> { }); } + // TODO: return `UnknownHeadBlock` if blob_root doesn't exist in fork choice + // and wherever it could be found. + let earliest_permissible_slot = chain .slot_clock .now_with_past_tolerance(MAXIMUM_GOSSIP_CLOCK_DISPARITY)