Skip to content

Commit 91efb9d

Browse files
committed
Add todos
1 parent 21bf3d3 commit 91efb9d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

beacon_node/beacon_chain/src/blob_verification.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl<'a, T: BeaconChainTypes> VerifiedBlobsSidecar<'a, T> {
105105
chain: &BeaconChain<T>,
106106
) -> Result<Self, BlobError> {
107107
let blob_slot = blob_sidecar.message.beacon_block_slot;
108+
let blob_root = blob_sidecar.message.beacon_block_root;
108109
// Do not gossip or process blobs from future or past slots.
109110
let latest_permissible_slot = chain
110111
.slot_clock
@@ -117,6 +118,9 @@ impl<'a, T: BeaconChainTypes> VerifiedBlobsSidecar<'a, T> {
117118
});
118119
}
119120

121+
// TODO: return `UnknownHeadBlock` if blob_root doesn't exist in fork choice
122+
// and wherever it could be found.
123+
120124
let earliest_permissible_slot = chain
121125
.slot_clock
122126
.now_with_past_tolerance(MAXIMUM_GOSSIP_CLOCK_DISPARITY)

0 commit comments

Comments
 (0)