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

Problem: changeset verify command return wrong app-hash on old blocks #985

Merged
merged 12 commits into from
Apr 20, 2023
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
mmsqe committed Apr 20, 2023
commit 4baa48fd2a7dcbafa4df528adad1931e37a785d7
6 changes: 5 additions & 1 deletion integration_tests/test_versiondb.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def test_versiondb_migration(cronos: Cronos):
print(cli1.changeset_dump(changeset_dir))
snapshot_dir = tempfile.mkdtemp(dir=cronos.base_dir)
print("verify and save to snapshot:", snapshot_dir)
_, commit_info = cli0.changeset_verify(changeset_dir, save_snapshot=snapshot_dir, target_version=1)
_, commit_info = cli0.changeset_verify(
changeset_dir,
save_snapshot=snapshot_dir,
target_version=1,
mmsqe marked this conversation as resolved.
Show resolved Hide resolved
)
yihuang marked this conversation as resolved.
Show resolved Hide resolved
latest_version = commit_info["version"]

# replace existing `application.db`
Expand Down