Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Latest commit

 

History

History

polkadot-launch

polkadot-launch

Simple CLI tool to launch a local Polkadot test network.

Notes

  • You must use node.js v14.x.x
  • MacOs users: make sure your machines firewall is disabled. Choose Apple menu > System Preferences, click Security & Privacy, then click Firewall and make sure it is off.
  • These instructions are adapted from the original polkadot-launch for quickly starting statemint. For the original README consult https://github.com/paritytech/polkadot-launch#readme

Building binaries

To use polkadot-launch, you need to have binary files for a polkadot relay chain and a statemint collator.

You can generate these files by cloning the statemint branch of these projects and building them with the specific flags below:

git clone -b statemint https://github.com/paritytech/polkadot
cd polkadot
cargo build --release

and in the root directory of this repo

cargo build --release

Use

Setting up config.json

Modify the config.json in this repo's root to point to your polkadot binary built from the statemint branch:

{
  "relaychain": {
    "bin": "<path to polkadot binary>",
    ...
  }
  ...
}

Start up polkadot-launch

cd polkadot-launch
yarn
yarn start

Node logging

Each node's stdout is piped to files in this directory: alice.log, bob.log, charlie.log, 9988.log.

cd polkadot-launch
tail -f alice.log