Skip to content

Commit

Permalink
Merge pull request #2283 from subspace/move-chain-specs-into-shared-c…
Browse files Browse the repository at this point in the history
…rate

Move chain specifications into a shared crate
  • Loading branch information
nazar-pc authored Dec 1, 2023
2 parents 9766c32 + fc9c59b commit 3cf08cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions crates/sc-subspace-chain-specs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ pub use utils::SerializableChainSpec;

use sc_chain_spec::NoExtension;

/// Devnet chain spec
pub const DEVNET_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-devnet.json");
/// Gemini 3g chain spec
pub const GEMINI_3G_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-3g.json");

/// Specialized `ChainSpec` for the consensus runtime.
pub type ConsensusChainSpec<GenesisConfig> = SerializableChainSpec<GenesisConfig>;

Expand Down
4 changes: 1 addition & 3 deletions crates/subspace-node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::domain::evm_chain_spec::{self, SpecId};
use hex_literal::hex;
use parity_scale_codec::Encode;
use sc_service::{ChainType, NoExtension};
use sc_subspace_chain_specs::ConsensusChainSpec;
use sc_subspace_chain_specs::{ConsensusChainSpec, DEVNET_CHAIN_SPEC, GEMINI_3G_CHAIN_SPEC};
use sc_telemetry::TelemetryEndpoints;
use sp_consensus_subspace::FarmerPublicKey;
use sp_core::crypto::{Ss58Codec, UncheckedFrom};
Expand All @@ -42,8 +42,6 @@ use subspace_runtime::{
use subspace_runtime_primitives::{AccountId, Balance, BlockNumber, SSC};

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_3G_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-3g.json");

/// List of accounts which should receive token grants, amounts are specified in SSC.
const TOKEN_GRANTS: &[(&str, u128)] = &[
Expand Down

0 comments on commit 3cf08cc

Please sign in to comment.