Skip to content

Commit

Permalink
Merge pull request #522 from subspace/gemini-1a-release
Browse files Browse the repository at this point in the history
Add gemini-1 chain spec from snapshot with production bootstrap nodes
  • Loading branch information
nazar-pc authored May 31, 2022
2 parents 660db09 + a6b31cc commit 38eb757
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 2 deletions.
120 changes: 120 additions & 0 deletions crates/subspace-node/res/chain-spec-raw-gemini-1.json

Large diffs are not rendered by default.

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 @@ -36,7 +36,7 @@ use subspace_runtime_primitives::{AccountId, Balance, BlockNumber, SSC};

const POLKADOT_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
const SUBSPACE_TELEMETRY_URL: &str = "wss://telemetry.subspace.network/submit/";
// const TESTNET_BOOTSTRAP_NODE: &str = "/dns/farm-rpc.subspace.network/tcp/30333/p2p/12D3KooWPjMZuSYj35ehced2MTJFf95upwpHKgKUrFRfHwohzJXr";
const GEMINI_1_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-1.json");

/// List of accounts which should receive token grants, amounts are specified in SSC.
const TOKEN_GRANTS: &[(&str, u128)] = &[
Expand Down Expand Up @@ -77,7 +77,7 @@ pub struct ChainSpecExtensions {
pub type ConsensusChainSpec = SerializableChainSpec<GenesisConfig, ChainSpecExtensions>;

pub fn gemini_config() -> Result<ConsensusChainSpec, String> {
todo!("Distribute the gemini ChainSpec once finalized")
ConsensusChainSpec::from_json_bytes(GEMINI_1_CHAIN_SPEC)
}

pub fn gemini_config_compiled() -> Result<ConsensusChainSpec, String> {
Expand Down

0 comments on commit 38eb757

Please sign in to comment.