-
Notifications
You must be signed in to change notification settings - Fork 167
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
Replace blob chain info query usage with blob download #2079
Replace blob chain info query usage with blob download #2079
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @andresilva91 and the rest of your teammates on Graphite |
b17f2e0
to
715ccd6
Compare
Graphite Automations"Assign reviewers" took an action on this PR • (05/30/24)6 reviewers were added to this PR based on Andre da Silva's automation. |
7832aa3
to
c8a3801
Compare
715ccd6
to
4551e25
Compare
c8a3801
to
143c6a4
Compare
4551e25
to
df695bc
Compare
143c6a4
to
26ffb60
Compare
df695bc
to
adb92b5
Compare
26ffb60
to
19ddf6b
Compare
adb92b5
to
d00c5ae
Compare
19ddf6b
to
cba62d9
Compare
d00c5ae
to
5166833
Compare
cba62d9
to
7a20c90
Compare
5166833
to
10dbe38
Compare
7a20c90
to
eded29e
Compare
10dbe38
to
4e2ecb0
Compare
.await | ||
.into_iter() | ||
.flatten() | ||
.flatten() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we fail if one of the blobs can't be found? (Edit: I see, we already aren't doing that.)
@@ -71,6 +72,9 @@ pub enum LocalNodeError { | |||
|
|||
#[error("The chain info response received from the local node is invalid")] | |||
InvalidChainInfoResponse, | |||
|
|||
#[error("Got different blob id from downloaded blob when trying to download {blob_id:?}")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[error("Got different blob id from downloaded blob when trying to download {blob_id:?}")] | |
#[error("Got different blob ID from downloaded blob when trying to download {blob_id:?}")] |
{ | ||
return Some(blob); | ||
for mut node in validators { | ||
if let Some(blob) = Self::try_download_blob_from(&mut node, blob_id).await? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't fail if one faulty/malicious validator sends us the wrong blob. We should continue trying to download it from someone else.
Closing in favor of #2098. |
Motivation
Now that we can download blobs, using the chain info query isn't needed anymore
Proposal
Use the download blob entrypoint instead
Test Plan
CI