-
Notifications
You must be signed in to change notification settings - Fork 166
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
[Access] Added highest indexed height to metadata #5832
base: master
Are you sure you want to change the base?
[Access] Added highest indexed height to metadata #5832
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5832 +/- ##
==========================================
+ Coverage 55.83% 55.85% +0.01%
==========================================
Files 1129 1130 +1
Lines 89260 89230 -30
==========================================
- Hits 49841 49835 -6
+ Misses 34667 34643 -24
Partials 4752 4752
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…isarchuk/4757-current-indexed-height
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
….com:The-K-R-O-K/flow-go into AndriiSlisarchuk/4757-current-indexed-height
…isarchuk/4757-current-indexed-height
return nil, rpc.ConvertIndexError(err, lastFinalizedHeader.Height, "could not get highest indexed height") | ||
} | ||
|
||
metadata.HighestIndexedHeight = highestIndexedHeight |
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 should treat the return value from HighestIndexedHeight
as undefined when an error is returned, and explicitly set the value to 0. this makes the intention clear for the next reader, and avoids hard to debug issues in the future if the implementation ever changes.
Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
#4757
Added highest indexed height field to Access API endpoints metadata.