Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update is_available condition #19

Open
wants to merge 2 commits into
base: data-cols-by-root
Choose a base branch
from

Conversation

dapplion
Copy link
Owner

Update AvailabilityView is_available condition to consider the case where one has sampled sufficient columns

@@ -198,7 +207,9 @@ pub trait AvailabilityView<E: EthSpec> {
/// of expected blobs.
fn is_available(&self) -> bool {
if let Some(num_expected_blobs) = self.num_expected_blobs() {
// Note: the first equality covers the case of no columns to sample post EIP-7594

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean "pre" EIP-7594?

num_expected_blobs == self.num_received_blobs()
|| self.num_received_columns() >= self.samples_per_slot()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the get_cached_data_columns currently stores the gossip verified data columns, so it's really the custody_columns rather than the sample columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants