This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Description
What is this task and why do we need to work on it?
We plan to enforce a base fee per byte. To do this, we need to know the size of the proposed payload during validation (also in Header::new where the fee info gets proposed). So we need to pass VidCommon into the block trait functions. This means that in the consensus task, we can't call validate_and_apply_header until we have received the VID dispersal, so that call would have to get moved into vote_if_able, which is a pretty significant logic change.
After the voting dependancies are collected we'll know that we have the VID information and can do all our validation. Also it will mean we won't be running the validated_and_apply_header logic which is blocking on the main consensus task.
As part of the refactoring efforts to the vote_if_able function, we need to support the ability to make this data available for calculation purposes.
What work will need to be done to complete this task?
No response
Are there any other details to include?
No response
What are the acceptance criteria to close this issue?
Tests to ensure that the requisite information is indeed available.
Branch work will be merged to (if not the default branch)
No response