-
Notifications
You must be signed in to change notification settings - Fork 961
Open
Labels
Description
Description
DataAvailabilityChecker: a cache to hold fully valid data that can't be imported to fork choice yet
CustodyContext: Contains all the information the node requires to calculate the number of blobs/columns to be custodied when checking for DA.
We have the following functions implemented for DataAvailabilityChecker that should be moved to CustodyContext
blobs_required_for_epochdata_columns_required_for_blockdata_availability_boundaryis_deneb(maybe we probably remove this completely, I don't think it's used anywhere)
This will help keep a better separation of concerns between the DataAvailabilityChecker and CustodyContext types
Additional Notes
As part of this refactor:
-
DataAvailabilityCheckerno longer needs a reference to slot clock, slot clock should move toCustodyContext. Move DA boundary checks to CustodyContext #8696 -
RpcBlock::newshould accept aCustodyContextas an argument instead of aDataAvailabilityCheckerMove DA boundary checks to CustodyContext #8696 - Move
AvailableBlockandAvailableBlockDatafromdata_availability_checker.rstoblock_verification_types.rs - Delete
enum DataSidecarsand replace its usage withAvailableBlockData - Explore passing
RpcBlock::FullyAvailableto range and backfill sync - Ensure all
TODO(#8633)references in the codebase are resolved