Skip to content

Conversation

@mm-zk
Copy link
Collaborator

@mm-zk mm-zk commented Sep 13, 2025

What ❔

Updated genesis hash to match zkos-0.29.6.

Instructions on how to do it:

COMMIT_CHANGES=true ZKSYNC_OS_SERVER_TAG=origin/main ERA_CONTRACTS_TAG=zkos-v0.29.6  ZKSYNC_ERA_STACK_CLI_TAG=origin/main  ./update.sh

This generated changes in genesis.json + state.json.

Now changing the code in repos/zksync-os-server (that already has this new genesis.json) - to print the commitment.
Then starting anvil + the server.

anvil --load-state zkos-l1-state.json
# and in separate terminal (from repos/zksync-os-server)
# cleanup DB just in case
rm -rf db/

cargo run

This should crash (with different hash) - but that's ok - we have to 'only' pick up the hash that we printed in the step above.

Got the hash:

[node/bin/src/batcher/util.rs:38:5] &state_commitment = 0xc346a158cce093e99ab65a95c884a26629d0e4f8d00ae20bbca4bfc4b204eec2

updated zksync-os-integration branch.

And re-run again:

COMMIT_CHANGES=true ZKSYNC_OS_SERVER_TAG=origin/main ERA_CONTRACTS_TAG=zkos-v0.29.6  ZKSYNC_ERA_STACK_CLI_TAG=origin/main  ./update.sh

@mm-zk mm-zk merged commit 807a775 into zksync-os-integration Sep 13, 2025
6 of 8 checks passed
@mm-zk mm-zk deleted the mmzk_0913_updated_genesis_hash branch September 13, 2025 12:39
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.

1 participant