Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
improve internal documentation
  • Loading branch information
coriolinus committed Oct 5, 2020
commit bc710c34f83d2ff428b6500b823e6f72e38581f0
8 changes: 6 additions & 2 deletions scripts/two-node-local-net.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

# run a two node local net
# Run a two node local net.
# Unlike the docker-compose script in the /docker folder, this version builds the nodes based
# on the current state of the code, instead of depending on a published version.

set -e

Expand Down Expand Up @@ -45,7 +47,9 @@ function flagify() {
# start a node and label its output
#
# This function takes a single argument, the node name.
# The name must be one of those which can be passed to the polkadot binary, in un-flagged form.
# The name must be one of those which can be passed to the polkadot binary, in un-flagged form,
# one of:
# alice, bob, charlie, dave, eve, ferdie, one, two
function run_node() {
name="$1"
# create a named pipe so we can get the node's PID while also sedding its output
Expand Down