-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(katana): rollup and dev chain spec (#2957)
The main idea of this PR is **(1)** to define concrete types for the different ways the node chain spec can be configured, and **(2)** implement different genesis initialization procedures based on the chain spec types. We define two separate chain spec types (but combined as an enum when it is consumed by the node):- 1. `katana_chain_spec::dev::ChainSpec` - Use the same genesis initialization function as it is now. - No execution, genesis block and states are embedded directly into the database. - Node running with this chain spec type is not meant to be provable (as the block 0 is not provable). 2. `katana_chain_spec::rollup::ChainSpec` - Initialized by executing the block returned by `rollup::ChainSpec::block()`. - The block contains valid, executable transactions generated from the chain spec's genesis. - The transactions are guaranteed to be valid when they are executed by `snos`*, as they are meant to be provable. By defining these types separately, the node can handle the different setup processes more clearly. --- \* Our version of [`snos`](cartridge-gg/snos#1)
- Loading branch information
Showing
35 changed files
with
6,685 additions
and
6,665 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.