Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes cumulus README instructions #2442

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions cumulus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ git clone https://github.com/paritytech/polkadot-sdk
# Compile Polkadot
cargo build --release --bin polkadot

# Compile Polkadot's `execute` and `prepare` binaries
cargo build --release --bin polkadot-prepare
cargo build --release --bin polkadot-execute
gpestana marked this conversation as resolved.
Show resolved Hide resolved

# Generate a raw chain spec
./target/release/polkadot build-spec --chain rococo-local --disable-default-bootnode --raw > rococo-local-cfde.json

Expand All @@ -161,26 +165,26 @@ cargo build --release --bin polkadot
# Clone
git clone https://github.com/paritytech/polkadot-sdk

# Compile
# Compile (under `/polkadot-sdk/cumulus/polkadot-parachain`)
gpestana marked this conversation as resolved.
Show resolved Hide resolved
cargo build --release --bin polkadot-parachain
gpestana marked this conversation as resolved.
Show resolved Hide resolved

# Export genesis state
# Export genesis state (under `/polkadot-sdk/` from now on)
./target/release/polkadot-parachain export-genesis-state > genesis-state

# Export genesis wasm
./target/release/polkadot-parachain export-genesis-wasm > genesis-wasm

# Collator1
./target/release/polkadot-parachain --collator --alice --force-authoring \
--tmp --port 40335 --rpc-port 9946 -- --chain ../polkadot/rococo-local-cfde.json --port 30335
--tmp --port 40335 --rpc-port 9946 -- --chain rococo-local-cfde.json --port 30335

# Collator2
./target/release/polkadot-parachain --collator --bob --force-authoring \
--tmp --port 40336 --rpc-port 9947 -- --chain ../polkadot/rococo-local-cfde.json --port 30336
--tmp --port 40336 --rpc-port 9947 -- --chain rococo-local-cfde.json --port 30336

# Parachain Full Node 1
./target/release/polkadot-parachain --tmp --port 40337 --rpc-port 9948 -- \
--chain ../polkadot/rococo-local-cfde.json --port 30337
--chain rococo-local-cfde.json --port 30337
```

#### Register the parachain
Expand Down