Skip to content
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

[BACKPORT/22.2.x] runtime/consensus/tendermint/verifier: Correctly compare headers #5069

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

kostko
Copy link
Member

@kostko kostko commented Nov 22, 2022

Backport of #5068

Since the store may have an earlier (non-canonical, but valid) version
of the block available, we need to only compare the actual header and
not the commits/signatures.

This is because it can happen that during the immediate sync the light
block does not yet contain all of the commits (but only just enough to
be valid, e.g. 2/3+) and this gets stored in the light block store.
Later on (e.g. during a query) the presented light block may have the
full set of commits.
@kostko kostko added the c:backport Category: backport to stable branch label Nov 22, 2022
@kostko kostko enabled auto-merge November 22, 2022 08:35
@kostko kostko merged commit ef04665 into stable/22.2.x Nov 22, 2022
@kostko kostko deleted the kostko/stable/22.2.x/backport-5068 branch November 22, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:backport Category: backport to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants