-
Notifications
You must be signed in to change notification settings - Fork 269
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
fix: working hash with initial version #943
Conversation
@Mergifyio backport release/v1.1.x |
✅ Backports have been created
|
@Mergifyio backport master |
✅ Backports have been created
|
(cherry picked from commit 70f77c2) # Conflicts: # CHANGELOG.md
(cherry picked from commit 70f77c2) # Conflicts: # CHANGELOG.md
Co-authored-by: cool-developer <[email protected]>
Co-authored-by: cool-developer <[email protected]>
This PR seems to be a major breaking change in how root hash is calculated with the initial version. |
This is modified in #676 , yes v1 is a consensus breaking in the edge case, #956 (comment) |
I see, what's interesting is we only notice the difference after the |
Context
InitialVersion
is not reflected in theWorkingHash
calculation, only reflected in theSaveVersion
. This will lead to theAppHash
mismatch while upgrading, since the the hash of the root is already calculated in theWorkingHash
and won't re-calculated in theSaveVersion
which is wrong.