Skip to content

Commit

Permalink
Merge pull request paritytech#1318 from subspace/gemini_3d_chain_spec
Browse files Browse the repository at this point in the history
add gemini-3d raw spec
  • Loading branch information
nazar-pc authored Mar 29, 2023
2 parents 2de5d20 + a60279a commit d221a1d
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 0 deletions.
124 changes: 124 additions & 0 deletions crates/subspace-node/res/chain-spec-raw-gemini-3d.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions crates/subspace-node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use system_domain_runtime::GenesisConfig as SystemDomainGenesisConfig;

const SUBSPACE_TELEMETRY_URL: &str = "wss://telemetry.subspace.network/submit/";
const DEVNET_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-devnet.json");
const GEMINI_3D_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-3d.json");

/// List of accounts which should receive token grants, amounts are specified in SSC.
const TOKEN_GRANTS: &[(&str, u128)] = &[
Expand Down Expand Up @@ -158,6 +159,11 @@ pub fn gemini_3d_compiled(
))
}

pub fn gemini_3d_config(
) -> Result<ConsensusChainSpec<GenesisConfig, SystemDomainGenesisConfig>, String> {
ConsensusChainSpec::from_json_bytes(GEMINI_3D_CHAIN_SPEC)
}

pub fn devnet_config(
) -> Result<ConsensusChainSpec<GenesisConfig, SystemDomainGenesisConfig>, String> {
ConsensusChainSpec::from_json_bytes(DEVNET_CHAIN_SPEC)
Expand Down
1 change: 1 addition & 0 deletions crates/subspace-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ impl SubstrateCli for Cli {
fn load_spec(&self, id: &str) -> Result<Box<dyn ChainSpec>, String> {
let mut chain_spec = match id {
"gemini-3d-compiled" => chain_spec::gemini_3d_compiled()?,
"gemini-3d" => chain_spec::gemini_3d_config()?,
"devnet" => chain_spec::devnet_config()?,
"devnet-compiled" => chain_spec::devnet_config_compiled()?,
"dev" => chain_spec::dev_config()?,
Expand Down

0 comments on commit d221a1d

Please sign in to comment.