git clone https://github.com/paritytech/substrate
cd substrate/node-template
git checkout 53df5619c0273ef226ed9a470ca863d212ac917c
./scripts/init.sh
./scripts/build.sh
cargo build
cd ..
cargo install --force --path subkey subkey
Note: you may see numerous warnings from this. This is expected - if the build completes, you should be good.
./target/debug/node-template \
--base-path /tmp/alice \
--chain=local \
--key //Alice \
--port 30333 \
--validator \
--name AlicesNode
https://polkadot.js.org/apps/#/explorer
./target/debug/node-template \
--base-path /tmp/bob \
--chain=local \
--key //Bob \
--port 30334 \
--validator \
--name BobsNode \
--bootnodes /ip4/<Alices IP Address>/tcp/<Alices Port>/p2p/<Alices Node ID>
cargo install --force --path subkey subkey
subkey -e generate
./target/debug/node-template build-spec --chain=local > customSpec.json
Bill's address is 5CrAp3py6srR5jNc6tw3XFNQt8BHD2xETiXLxpWmcDkdEhTT
./target/debug/node-template build-spec --chain customSpec.json --raw > customSpecRaw.json
./target/debug/node-template \
--chain customSpecRaw.json \
--key <GENERATED KEY> \
--validator
./target/debug/node-template \
--chain customSpecRaw.json \
--base-path /tmp/new \
--key <YOUR SECRET KEY> \
--name <YOUR NODE NAME> \
--bootnodes /ip4/<Instructor’s IP Address>/tcp/<Instructor’s Port>/p2p/<Instructor's Node ID>
Instructor's IP is 10.10.230.111
Instructor's port is 30333
Instructor's node ID is QmREfrczwoeQWKxUaeQGP8Vhr3uuvLkqw5a3hxbf84mgZp
For debugging: