lite2: correctly return the results of the "latest" block#4931
Merged
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
|
erikgrinaker
approved these changes
Jun 2, 2020
cmwaters
approved these changes
Jun 2, 2020
Contributor
cmwaters
left a comment
There was a problem hiding this comment.
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, |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4837
/block_resultsbefore:
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