You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Right now, even after removing references to the RuntimeGenesisConfig struct on the node side, the node/client is still not fully independent from the runtime. There are some runtime-related leftovers that the node needs to know about when building the chain-spec.
Shift the task of creating the JSON representation of the runtime genesis config from the node to the runtime itself. This way, the runtime handles its own configuration, making things cleaner and reducing dependencies.
Move Development Genesis Config to the Runtime to
support decoupling of client and runtime dependencies.
When running `chain-spec-builder`, the following command:
```
chain-spec-builder list-presets –-runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm
```
**Outputs:**
With feature flags _"frequency-no-relay", "frequency-local"_ enabled:
```
{“presets”:[“development”, "frequency-local", "frequency"]}
```
Additionally, when running:
```
chain-spec-builder display-preset --runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm --preset-name development
```
it outputs the development genesis config:
```
{"aura":{"authorities":[]},"auraExt":{},"balances":{ ...} ... }
```
With feature flags _"frequency"_ only, mainnet presets show up:
```
{“presets”:["frequency"]}
```
Additionally, when running:
```
chain-spec-builder display-preset --runtime-wasm-path ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm --preset-name frequency
```
it outputs the frequency genesis config:
```
{"aura":{"authorities":[]},"auraExt":{},"balances":{ ...} ... }
```
#2149#2142
Description
Right now, even after removing references to the RuntimeGenesisConfig struct on the node side, the node/client is still not fully independent from the runtime. There are some runtime-related leftovers that the node needs to know about when building the chain-spec.
Shift the task of creating the JSON representation of the runtime genesis config from the node to the runtime itself. This way, the runtime handles its own configuration, making things cleaner and reducing dependencies.
paritytech/polkadot-sdk#2714
Acceptance Criteria
The text was updated successfully, but these errors were encountered: