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

DA: Incoming sampling request handling #730

Merged
merged 4 commits into from
Sep 6, 2024
Merged

DA: Incoming sampling request handling #730

merged 4 commits into from
Sep 6, 2024

Conversation

bacv
Copy link
Member

@bacv bacv commented Sep 6, 2024

Incoming sample request handling in Sampling service.

Copy link
Collaborator

@danielSanchezQ danielSanchezQ left a comment

Choose a reason for hiding this comment

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

Awesome work. Thanks a lot!

@@ -132,13 +143,64 @@ impl Clone for SamplingError {
peer_id: *peer_id,
error: *error,
},
SamplingError::InvalidBlobId { blob_id, peer_id } => SamplingError::InvalidBlobId {
peer_id: *peer_id,
blob_id: blob_id.clone(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: maybe is bacause of generics, but real blob_id is copy.

Copy link
Member Author

Choose a reason for hiding this comment

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

The types differ for these invalid blob errors, they are Vec because this is what we get from the net. In the other errors, that come from the inside the node, the type is [u8;32]. If we'll move away from protobufs, maybe this will be solved.

@bacv bacv merged commit f8a7352 into master Sep 6, 2024
13 checks passed
@bacv bacv deleted the da-sample-lookup branch September 6, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants