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

v2 Retrieval Client #953

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Dec 3, 2024

Why are these changes needed?

Implements a client that queries chunks from DA nodes and reconstructs the blob

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 marked this pull request as ready for review December 4, 2024 01:49
}

// NewRetrievalClientV2 creates a new retrieval client.
func NewRetrievalClientV2(
Copy link
Contributor

Choose a reason for hiding this comment

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

This fetches the data directly from the DA nodes. Should we first attempt to fetch the data from the relays? Or is this the job of another layer of the system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fetches the data directly from the DA nodes. Should we first attempt to fetch the data from the relays? Or is this the job of another layer of the system?

Yes, that is done using the relay client. This client is meant to be the client used to retrieve from the DA nodes.
Whatever is integrating retrieval should choose to integrate using one or both of these clients.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clarified this in the comment

@ian-shim ian-shim force-pushed the retrieval-client-v2 branch from 8ef8338 to 7ff0ff8 Compare December 7, 2024 00:35
@ian-shim ian-shim merged commit dd42f16 into Layr-Labs:master Dec 7, 2024
6 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