Skip to content

Commit

Permalink
Add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Oct 5, 2022
1 parent 21bf3d3 commit 91efb9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beacon_node/beacon_chain/src/blob_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ impl<'a, T: BeaconChainTypes> VerifiedBlobsSidecar<'a, T> {
chain: &BeaconChain<T>,
) -> Result<Self, BlobError> {
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
Expand All @@ -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)
Expand Down

0 comments on commit 91efb9d

Please sign in to comment.