Skip to content

Commit 5a8b1c3

Browse files
A0-4231: Use json chainspec builder. Move chainspec generation to separate module. (#1683)
# Description This is 1 out of N (2 or 3) PRs which goal is to remove `aleph-runtime` dependency from `aleph-node`. This PR: * uses `json` chainspec builder (introduced in `polkadot 1.4.0`) * moves chainspec generation to a separate module. Idea here is that this module eventually becomes new crate. Latter has bigger design goal, which is to move below commands to separate bin crate called `generate-chain-spec`, ie moving `bootstrap-chain` command out of `aleph-node` binary. This will be a breaking change, but since it will be out in 14 release, with proper communication should be fine, as it mostly affects new chains - ie dev and testing ones. The architecture of `Command` and new module files might not be ideal, but will be improved in the subsequent PRs. # Testing - run e2e nightly - compare manually generated non-raw chainspec with `main` version
1 parent 914b13d commit 5a8b1c3

File tree

13 files changed

+489
-529
lines changed

13 files changed

+489
-529
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ sp-consensus-aura = { git = "https://github.com/Cardinal-Cryptography/polkadot-s
144144
sp-consensus-slots = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
145145
sp-core = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
146146
sp-inherents = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
147+
sp-genesis-builder = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
147148
sp-io = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
148149
sp-keystore = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }
149150
sp-offchain = { git = "https://github.com/Cardinal-Cryptography/polkadot-sdk.git", branch = "aleph-v1.4.0", default-features = false }

0 commit comments

Comments
 (0)