Skip to content

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Operator should not download/process chunks outside its participating quorums.

Checks

  • 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.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim force-pushed the ignore-chunks-outside-op-quorums branch from 8c4c1f5 to fe4e7f9 Compare January 17, 2025 04:05
@ian-shim ian-shim marked this pull request as ready for review January 17, 2025 04:07
@@ -71,9 +71,16 @@ func (n *Node) DownloadBundles(ctx context.Context, batch *corev2.Batch, operato
if !ok {
return nil, nil, fmt.Errorf("blob version %d not found", cert.BlobHeader.BlobVersion)
}

if _, ok := operatorState.Operators[quorum]; !ok {
// operator is not part of the quorum or the quorum is not valid
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a warn or debug log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ian-shim ian-shim force-pushed the ignore-chunks-outside-op-quorums branch from fe4e7f9 to a426683 Compare January 17, 2025 21:34
@ian-shim ian-shim merged commit 8913f95 into Layr-Labs:master Jan 21, 2025
8 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.

2 participants