-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lite2: correctly return the results of the "latest" block #4931
Conversation
Closes #4837 - `/block_results` before: failed to update light client to 7: failed to obtain the header #7: signed header not found after: We can't return the latest block results because we won't be able to prove them. Return the results for the previous block instead. - /block_results?height=X` no changes
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been
Thank you for your contribution to Tendermint! 🚀 |
Codecov Report
@@ Coverage Diff @@
## master #4931 +/- ##
==========================================
- Coverage 62.84% 62.75% -0.09%
==========================================
Files 198 198
Lines 20047 20055 +8
==========================================
- Hits 12598 12585 -13
- Misses 6427 6443 +16
- Partials 1022 1027 +5
|
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 spun it up and it seemed to work as expected 👍
I met following error when I tested it.
I wonder if this code is right.
If And there's another problem,
|
Closes #4837
/block_results
before:
failed to update light client to 7: failed to obtain the header Fix p2p/switch.Broadcast impl #7: signed header not found
after:
We can't return the latest block results because we won't be able to
prove them. Return the results for the previous block instead.
/block_results?height=X`
no changes