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

Validate batch merkle root #312

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

mooselumph
Copy link
Collaborator

Why are these changes needed?

Why is it needed, indeed.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

type ChunkValidator interface {
ValidateBatch([]*BlobMessage, *OperatorState, common.WorkerPool) error
ValidateBlob(*BlobMessage, *OperatorState) error
type DataValidator interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we create a name for data that's received by node (e.g. shard, BlobShard)? This naming may be more specific

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are you suggesting changing BlobMessage into BlobShard?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm suggesting "DataValidator" to something more specific such as "BlobShardValidator"

Copy link
Contributor

@bxue-l2 bxue-l2 Mar 5, 2024

Choose a reason for hiding this comment

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

DataMessageValidator? Shard stands out too much

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What about just ShardValidator?

core/validator.go Outdated Show resolved Hide resolved
@mooselumph mooselumph merged commit 5aaa209 into Layr-Labs:master Mar 5, 2024
4 checks passed
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.

4 participants