Skip to content

Commit

Permalink
Merge pull request #2489 from subspace/gemini-3h-chain-spec
Browse files Browse the repository at this point in the history
Add Gemini 3h chain spec
  • Loading branch information
nazar-pc committed Jan 31, 2024
2 parents 34579c3 + c2eb429 commit c14a319
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 2 deletions.
197 changes: 197 additions & 0 deletions crates/sc-subspace-chain-specs/res/chain-spec-raw-gemini-3h.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions crates/sc-subspace-chain-specs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@

/// Devnet chain spec
pub const DEVNET_CHAIN_SPEC: &str = include_str!("../res/chain-spec-raw-devnet.json");
/// Gemini 3h chain spec
pub const GEMINI_3H_CHAIN_SPEC: &str = include_str!("../res/chain-spec-raw-gemini-3h.json");
4 changes: 2 additions & 2 deletions crates/subspace-node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use hex_literal::hex;
use parity_scale_codec::Encode;
use sc_chain_spec::GenericChainSpec;
use sc_service::{ChainType, NoExtension};
use sc_subspace_chain_specs::DEVNET_CHAIN_SPEC;
use sc_subspace_chain_specs::{DEVNET_CHAIN_SPEC, GEMINI_3H_CHAIN_SPEC};
use sc_telemetry::TelemetryEndpoints;
use sp_consensus_subspace::FarmerPublicKey;
use sp_core::crypto::{Ss58Codec, UncheckedFrom};
Expand Down Expand Up @@ -219,7 +219,7 @@ pub fn gemini_3h_compiled() -> Result<GenericChainSpec<RuntimeGenesisConfig>, St
}

pub fn gemini_3h_config() -> Result<GenericChainSpec<RuntimeGenesisConfig>, String> {
unimplemented!("Please use release prefixed with gemini-3h")
GenericChainSpec::from_json_bytes(GEMINI_3H_CHAIN_SPEC.as_bytes())
}

pub fn devnet_config() -> Result<GenericChainSpec<RuntimeGenesisConfig>, String> {
Expand Down

0 comments on commit c14a319

Please sign in to comment.