Skip to content

Commit

Permalink
Merge pull request #30 from DataHighway-DHX/update_rococo_json
Browse files Browse the repository at this point in the history
Updated ParaId and Rococo Json
  • Loading branch information
ayushmishra2005 authored Mar 18, 2022
2 parents 497dc6c + c697962 commit ea172cf
Show file tree
Hide file tree
Showing 12 changed files with 2,753 additions and 191 deletions.
39 changes: 20 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ cargo build --release
#### Create custom chain spec

```bash
rm rococo-parachain-2026-plain.json
rm rococo-parachain-2026-raw.json
./target/release/datahighway-collator build-spec --chain "rococo" --disable-default-bootnode > rococo-parachain-2026-plain.json
./target/release/datahighway-collator build-spec --chain rococo-parachain-2026-plain.json --raw --disable-default-bootnode > rococo-parachain-2026-raw.json
rm rococo-parachain-2007-plain.json
rm rococo-parachain-2007-raw.json
./target/release/datahighway-collator build-spec --chain "rococo" --disable-default-bootnode > rococo-parachain-2007-plain.json
./target/release/datahighway-collator build-spec --chain rococo-parachain-2007-plain.json --raw --disable-default-bootnode > rococo-parachain-2007-raw.json
```

Copy the "rococo" relay chain specification into the `./res` folder of the DataHighway-Parachain directory (i.e. `./res/rococo.json`).
Expand All @@ -95,7 +95,7 @@ Since on Rococo you would likely be using a chain specification with custom keys

```
./target/release/datahighway-collator key insert --base-path /tmp/parachain/datahighway-collator \
--chain rococo-parachain-2026-raw.json \
--chain rococo-parachain-2007-raw.json \
--scheme sr25519 \
--suri <secret seed> \
--key-type aura
Expand Down Expand Up @@ -123,7 +123,7 @@ Run Alice's bootnode using the raw chain definition file that was generated
--alice \
--collator \
--force-authoring \
--chain rococo-parachain-2026-raw.json \
--chain rococo-parachain-2007-raw.json \
--base-path /tmp/parachain/datahighway-collator \
--port 40333 \
--ws-port 8844 \
Expand Down
4 changes: 2 additions & 2 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'datahighway-collator'
version = '3.2.0'
version = '3.3.0'
authors = ['Anonymous']
description = 'DataHighway parachain collator FRAME-based Substrate Node based upon the Cumulus.'
license = 'Unlicense'
Expand Down Expand Up @@ -41,7 +41,7 @@ hex-literal = '0.3.4'
jsonrpc-core = '18.0.0'

# Local Dependencies
datahighway-parachain-runtime = { path = '../runtime', version = '3.2.0' }
datahighway-parachain-runtime = { path = '../runtime', version = '3.3.0' }
module-primitives = { version = '3.0.6', default-features = false, path = '../pallets/primitives' }

# Substrate Dependencies
Expand Down
4 changes: 2 additions & 2 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ pub fn datahighway_rococo_parachain_config() -> ChainSpec {
hex!["ea239700d67f53d30e39bee0c056f1165a6fb59ad4d5dd495c06d001af366c02"].into(),
],
// Parachain ID
2026.into(),
2007.into(),
// Enable println
true,
)
Expand All @@ -560,7 +560,7 @@ pub fn datahighway_rococo_parachain_config() -> ChainSpec {
// Extensions
Extensions {
relay_chain: "rococo".into(),
para_id: 2026,
para_id: 2007,
},
)
}
Expand Down
Binary file not shown.
Binary file added res/datahighway_parachain_runtime.compact.wasm
Binary file not shown.
Loading

0 comments on commit ea172cf

Please sign in to comment.