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

chore: Merge main into sync-layer-stable #3404

Merged
merged 8 commits into from
Dec 19, 2024

Conversation

StanislavBreadless
Copy link
Contributor

What ❔

Had to include config rename

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

zk-Lumi and others added 6 commits December 12, 2024 18:11
## What ❔

Hi @Deniallugo @popzxc 👋

Was playing with zkstack cli today. 

This PR is just fixing a couple of broken links and updating a bit of
wording in `zkstack_cli/README.md`.

PS: sidenote, "EVM emulator" is not explained in this readme, and
"Enable EVM emulator?" in interactive mode will be confusing to people
(they likely wont realize that it is emulating EVM equivalence but not
required for most chains + will be more expensive)

## Why ❔

Possibly a bit OCD, ie "Zk" being wrongly cased in one instance stayed
in my mind and bothered me hahahah 😉
<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.
This PR introduces the `custom_genesis_export` tool, designed to export
zkSync PostgreSQL database state in a format suitable for initializing a
custom genesis state for a new chain.

- Exports `initial_writes`, `storage_logs`, and `factory_deps`
(excluding system context entries) into a binary file.
- Updates the `genesis.yaml` file with:
- `genesis_root_hash`, `rollup_last_leaf_index`, and
`genesis_commitment` matching the exported data.
- Adds `custom_genesis_state_path` pointing to the export file, which is
recognised by the server during genesis.
- Adds support for initialising from a custom genesis state to the
server.

---------

Co-authored-by: Ivan Schasny <[email protected]>
Co-authored-by: Ivan Schasny <[email protected]>
@StanislavBreadless StanislavBreadless changed the title Merge main into sync-layer-stable chore: Merge main into sync-layer-stable Dec 19, 2024
@StanislavBreadless
Copy link
Contributor Author

Protobuf compatibility issues are expected

@StanislavBreadless StanislavBreadless merged commit 69ea2c6 into sync-layer-stable Dec 19, 2024
42 of 43 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-sync-main-sls branch December 19, 2024 13:17
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