-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix(node): commit http errors in data request retrieval #2307
fix(node): commit http errors in data request retrieval #2307
Conversation
This change sounds like a good candidate for being shipped with 1.6 — behind a TAPI flag if necessary. What do you think? |
I believe this can be merged without TAPI, because the old behavior is to not commit anything at all. Therefore the data requests will be unsolved until a majority of miners update, and then it will just work as expected. It is true that we won't have a guarantee that these data requests will be solved until the next TAPI update, which ensures that miners have updated, but I believe nothing will break if this change is merged without TAPI. |
I'm just fine with that approach. Thanks! |
In relation to what was discussed in
#2050, I'd suggest to let
a single HTTP/403 error in any of the data request's sources be interpreted
as a sufficient condition to make the witness node not to commit to such
data request. This way we'd make data requests relying on private APIs to
be systematically resolved with InsufficientCommits, unless there was a
minimal amount of witnessing nodes prepared to attend involved private API.
El mar, 10 ene 2023 a las 16:44, aesedepece ***@***.***>)
escribió:
… It is true that we won't have a guarantee that these data requests will be
solved until the next TAPI update, which ensures that miners have updated,
but I believe nothing will break if this change is merged without TAPI.
I'm just fine with that approach. Thanks!
—
Reply to this email directly, view it on GitHub
<#2307 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT6FV4UAUJECKHI5XXRNSZTWRV7XTANCNFSM6AAAAAASBCR2EY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I don't think it is a good idea to special-case HTTP/403 errors, because many APIs return 404 or 401 instead. |
Yeah right, either HTTP/401 or HTTP/403 errors in one single source would be sufficient condition for not commiting to a data request. Data requests relying on a majority of private API sources returning 404 error codes would just be resolved as |
@tmpolaczyk shall we rebase and merge this onto 1.6? |
53c56fb
to
a2ad35c
Compare
Done |
a2ad35c
to
c8e6f49
Compare
Fix #2306