Simple CLI tool to launch a local Polkadot test network.
- 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
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
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>",
...
}
...
}
cd polkadot-launch
yarn
yarn start
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