Skip to content

Refactor validate_data_column_sidecar_with_state function#657

Open
hangleang wants to merge 1 commit intograndinetech:developfrom
hangleang:refactor/validate_data_column_sidecar
Open

Refactor validate_data_column_sidecar_with_state function#657
hangleang wants to merge 1 commit intograndinetech:developfrom
hangleang:refactor/validate_data_column_sidecar

Conversation

@hangleang
Copy link
Copy Markdown
Collaborator

This PR merge Fulu and Gloas data column sidecar validation into a single unified method to avoid converting between Arc<DataColumnSidecar> and its underlying type

Comment thread fork_choice_store/src/store.rs Outdated
block_root,
));
};
if !origin.is_from_back_sync() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Duplicate check !origin.is_from_back_sync(). There is a code block with an identical check just above this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

updated in 9fc14ae

@hangleang hangleang force-pushed the refactor/validate_data_column_sidecar branch from ec794de to 9fc14ae Compare April 7, 2026 14:32
},
);

// [REJECT] The sidecar is for the correct subnet -- i.e. compute_subnet_for_data_column_sidecar(sidecar.index) == subnet_id.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this validation is not needed anymore?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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