-
Notifications
You must be signed in to change notification settings - Fork 925
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
refactor(api/gateway) return error from gateway if header is not synced yet #2108
refactor(api/gateway) return error from gateway if header is not synced yet #2108
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2108 +/- ##
==========================================
- Coverage 55.67% 55.49% -0.19%
==========================================
Files 209 209
Lines 13267 13321 +54
==========================================
+ Hits 7387 7393 +6
- Misses 5135 5186 +51
+ Partials 745 742 -3
... and 10 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Perfect, let's add a TODO that we will change this to NetworkHead from LocalHead once the adjacency in the store is fixed. Issue to link: celestiaorg/go-header#32 |
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.
One comment only
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.
i would just say "local chain head"
Fixes #2118 |
…ed yet (#2108) ## Overview If header was not in header store, gateway would hang until client context was canceled. PR allows gateway to return an error immediately in this case. --------- Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Overview
If header was not in header store, gateway would hang until client context was canceled. PR allows gateway to return an error immediately in this case.