-
-
Notifications
You must be signed in to change notification settings - Fork 416
feat: update getHistoricalSummaries endpoint include version+slot
#7742
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
Conversation
|
|
|
@nflaig ready for another look 🚀 |
nflaig
left a comment
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.
LGTM
does it make sense to return |
I will fix the test tomorrow, I was trying to match status-im/nimbus-eth2#6675 Nimbus's implementation to a degree. I struggle reading Nim. But without the |
Whatever works best for you, I don't think anyone else is using the api |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #7742 +/- ##
============================================
- Coverage 56.29% 56.29% -0.01%
============================================
Files 837 837
Lines 58044 58048 +4
Branches 4469 4468 -1
============================================
- Hits 32678 32677 -1
- Misses 25298 25303 +5
Partials 68 68 🚀 New features to boost your workflow:
|
|
It looks like you updated the test yourself, is there anything else I need to do on my end? |
seems good to me, CI is happy as well now |
|
merging this, can do follow up changes if something still needs to be adapted |
|
🎉 This PR is included in v1.30.0 🎉 |
Motivation
This PR is an extension on #7245
I was trying to use the endpoint to create a https://github.com/ethereum/portal-network-specs/blob/master/beacon-chain/beacon-network.md#historicalsummaries
HistoricalSummariesWithProof, but the endpoint didn't return the Fork or the slot as we need the epoch.Description
HistoricalSummariesResponseTypetype/eth/v1/lodestar/historical_summaries/{state_id}to/eth/v1/lodestar/states/{state_id}/historical_summariesto be more in line with the other state endpoints https://ethereum.github.io/beacon-APIs/#/Beacon