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

Base58Check for receipt chain hashes in account preconditions #14418

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

psteckler
Copy link
Member

In the archive db, receipt chain hashes in account preconditions were being written using the string representation of field elements. The replayer tries to read them as Base58Check for the Receipt.Chain_hash.t type (by calling Load_data.get_account_update_body from zkapp_command_to_transaction). That mismatch causes the replayer to fail.

The solution is to write the hashes as Base58Check. We already do so for receipt chain hashes in accounts_accessed.

Part of #14417.

@psteckler psteckler requested a review from a team as a code owner October 23, 2023 19:00
@psteckler
Copy link
Member Author

!ci-build-me

@mrmr1993
Copy link
Member

!approved-for-mainnet

@psteckler psteckler merged commit 4af0c22 into rampup Oct 23, 2023
2 checks passed
@psteckler psteckler deleted the fix/receipt-chain-hash-format branch October 23, 2023 21:45
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