A private chain based on substrate, with Frame V2
This version(
polkadot-v0.9.17
) requires Rust version:nightly-2021-11-07-x86_64-unknown-linux-gnu
git clone https://github.com/DoraFactory/dorafactory-node.git
cd dorafactory-node
cargo build --release
prepare
rococo-local-cfde.json
These commands are operated in yourpolkadot
dictionary.And checkout tov0.9.16
,also you should runcargo build --release
to build it.
./target/release/polkadot --chain rococo-local-cfde.json --alice --tmp --port 30333 --ws-port 9944
./target/release/polkadot --chain rococo-local-cfde.json --bob --tmp --port 30334 --ws-port 9945
./target/release/polkadot --chain rococo-local-cfde.json --dave --tmp --port 30335 --ws-port 9946
./target/release/dorafactory-node build-spec --disable-default-bootnode > rococo-local-parachain-plain.json
we build a prachain Id:
2115
// --snip--
"para_id": 2115, // <--- your already registered ID
// --snip--
"parachainInfo": {
"parachainId": 2115 // <--- your already registered ID
},
// --snip--
./target/release/dorafactory-node build-spec --chain rococo-local-parachain-plain.json --raw --disable-default-bootnode > rococo-local-parachain-2115-raw.json
./target/release/dorafactory-node export-genesis-wasm --chain rococo-local-parachain-2115-raw.json > para-2115-wasm
./target/release/dorafactory-node export-genesis-state --chain rococo-local-parachain-2115-raw.json > para-2115-genesis
./target/release/dorafactory-node \
--alice \
--collator \
--force-authoring \
--chain rococo-local-parachain-2115-raw.json \
--base-path /tmp/parachain/alice \
--port 40333 \
--ws-port 8844 \
-- \
--execution wasm \
--chain ../../../polkadot/rococo-local-cfde.json \
--port 30343 \
--ws-port 9977
then the parachain can not produce block, we need register our parachain in the relaychain https://docs.substrate.io/tutorials/v3/cumulus/connect-parachain/