Skip to content

Conversation

@macladson
Copy link
Member

Issue Addressed

#8652

Proposed Changes

Implements "simplified" versions of max_blobs_by_root_request and max_data_columns_by_root_request which do not depend on type information from the data module. I've also added tests which test the original implementation against the simplified one to ensure they don't deviate.

Also moves all_data_column_sidecar_subnets from a method on ChainSpec to a function which just takes ChainSpec as an argument.

Additional Info

This marks the final module blocking the core feature set (other than test_utils). I will add a full feature in a future PR which will allow compilation of consensus/types with just the core and fork modules.

@macladson macladson requested a review from jxs as a code owner January 22, 2026 09:20
@macladson macladson added work-in-progress PR is a work-in-progress code-quality ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Jan 22, 2026
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

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

Looks good. Just a few nits about docs and a suggestion for a test


#[test]
fn max_data_columns_by_root_request_matches_simplified() {
for n in [0, 1, 2, 8, 16, 32, 64, 128, 256, 512, 1024] {
Copy link
Member

Choose a reason for hiding this comment

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

maybe we can make sure it also works for default_max_request_blocks too since that's what's actually gets used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Isn't the value that actually gets used 128?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-quality ready-for-review The code is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants