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

fix: working hash with initial version #943

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

cool-develope
Copy link
Collaborator

Context

InitialVersion is not reflected in the WorkingHash calculation, only reflected in the SaveVersion. This will lead to the AppHash mismatch while upgrading, since the the hash of the root is already calculated in the WorkingHash and won't re-calculated in the SaveVersion which is wrong.

@cool-develope cool-develope requested a review from a team as a code owner May 7, 2024 17:42
@cool-develope
Copy link
Collaborator Author

@Mergifyio backport release/v1.1.x

Copy link
Contributor

mergify bot commented May 7, 2024

backport release/v1.1.x

✅ Backports have been created

@cool-develope
Copy link
Collaborator Author

@Mergifyio backport master

Copy link
Contributor

mergify bot commented May 7, 2024

backport master

✅ Backports have been created

@tac0turtle tac0turtle merged commit 70f77c2 into release/v1.x.x May 7, 2024
5 checks passed
@tac0turtle tac0turtle deleted the fix/working_hash branch May 7, 2024 18:25
mergify bot pushed a commit that referenced this pull request May 7, 2024
(cherry picked from commit 70f77c2)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request May 7, 2024
(cherry picked from commit 70f77c2)

# Conflicts:
#	CHANGELOG.md
tac0turtle pushed a commit that referenced this pull request May 8, 2024
tac0turtle pushed a commit that referenced this pull request May 8, 2024
roy-dydx pushed a commit to dydxprotocol/iavl that referenced this pull request May 9, 2024
roy-dydx pushed a commit to dydxprotocol/iavl that referenced this pull request May 9, 2024
roy-dydx pushed a commit to dydxprotocol/iavl that referenced this pull request May 9, 2024
@yihuang
Copy link
Collaborator

yihuang commented Oct 4, 2024

This PR seems to be a major breaking change in how root hash is calculated with the initial version.
ref: #660

@cool-develope
Copy link
Collaborator Author

This PR seems to be a major breaking change in how root hash is calculated with the initial version. ref: #660

This is modified in #676 , yes v1 is a consensus breaking in the edge case, #956 (comment)

@yihuang
Copy link
Collaborator

yihuang commented Oct 4, 2024

This PR seems to be a major breaking change in how root hash is calculated with the initial version. ref: #660

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 WorkingHash is fixed. but now memiavl is modified accordingly too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants