Skip to content

Latest commit

 

History

History

adder-collator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

How to run rococo-local with parachains on KAGOME

Note that for this tutorial, the rococo-local chainspec has been modified to make the epochs six minutes long. Original rococo-local chainspec could be obtained by typing polkadot build-spec --chain rococo-local.json --raw --disable-default-bootnode > rococo-local.json

This tutorial is based on the original tutorial from Polkadot repo

Start kagome

Run KAGOME network

Open two terminals and run a unique instance of KAGOME validator in each of them

kagome --chain rococo-local-raw.json --alice --port 50551 --node-key f6830f530f4fa0249357b56575162180f4c6822ee6e59e9081d8001cb200b66c --tmp
kagome --chain rococo-local-raw.json --bob   --port 50552 --node-key 15ed5bd565a9d0a3afb8f65a6b27795fef17247b03d0af1ce271f33504090e10 --tmp

Run adder collator

First build adder-collator binary from Polkadot repo by running cargo build --release -p test-parachain-adder-collator. Binary will appear in target/release/ folder.

adder-collator --tmp --chain rococo-local-raw.json --port 50553 --rpc-port 9947

Adder collator will print genesis state and wasm code which you should store in genesis.state and adder.wasm files correspondingly (or simply use files that are already in current folder).

Register parachain

  1. Go to https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/parachains/parathreads in your browser.
  2. Add new para id using Alice account
  3. Register parathread using adder.wasmand genesis.state as parameters