From 79dcce16745b8bb511f0ec1feef2f61296d353c4 Mon Sep 17 00:00:00 2001 From: thesilk-tux <57771754+thesilk-tux@users.noreply.github.com> Date: Mon, 20 Apr 2020 13:57:11 +0200 Subject: [PATCH] update local chain name in docker-compose and docu (#1009) * update local chain name in docker-compose and docu the name of a local network changed from local to polkadot-local so some local test environments were broken and the ticket #965 was created * using CLI flags --alice in local dev as this directly adds the required keys to the keystore Co-authored-by: Christian Seidemann --- polkadot/README.md | 4 ++-- polkadot/doc/networks/local.md | 4 ++-- polkadot/docker/docker-compose-local.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/polkadot/README.md b/polkadot/README.md index 91b7787e1e..43ba600477 100644 --- a/polkadot/README.md +++ b/polkadot/README.md @@ -198,13 +198,13 @@ RUST_LOG=debug RUST_BACKTRACE=1 cargo run —- --dev If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet. You'll need two terminals open. In one, run: ```bash -polkadot --chain=local --validator --key Alice -d /tmp/alice +polkadot --chain=polkadot-local --alice -d /tmp/alice ``` And in the other, run: ```bash -polkadot --chain=local --validator --key Bob -d /tmp/bob --port 30334 --bootnodes '/ip4/127.0.0.1/tcp/30333/p2p/ALICE_BOOTNODE_ID_HERE' +polkadot --chain=polkadot-local --bob -d /tmp/bob --port 30334 --bootnodes '/ip4/127.0.0.1/tcp/30333/p2p/ALICE_BOOTNODE_ID_HERE' ``` Ensure you replace `ALICE_BOOTNODE_ID_HERE` with the node ID from the output of the first terminal. diff --git a/polkadot/doc/networks/local.md b/polkadot/doc/networks/local.md index a2e16169fa..6120229f77 100644 --- a/polkadot/doc/networks/local.md +++ b/polkadot/doc/networks/local.md @@ -5,13 +5,13 @@ If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet. You'll need two terminals open. In one, run: ```bash -polkadot --chain=local --validator --key Alice -d /tmp/alice +polkadot --chain=poladot-local --alice -d /tmp/alice ``` and in the other, run: ```bash -polkadot --chain=local --validator --key Bob -d /tmp/bob --port 30334 --bootnodes '/ip4/127.0.0.1/tcp/30333/p2p/ALICE_BOOTNODE_ID_HERE' +polkadot --chain=polkadot-local --bob -d /tmp/bob --port 30334 --bootnodes '/ip4/127.0.0.1/tcp/30333/p2p/ALICE_BOOTNODE_ID_HERE' ``` Ensure you replace `ALICE_BOOTNODE_ID_HERE` with the node ID from the output of diff --git a/polkadot/docker/docker-compose-local.yml b/polkadot/docker/docker-compose-local.yml index c8097c6079..079d738252 100644 --- a/polkadot/docker/docker-compose-local.yml +++ b/polkadot/docker/docker-compose-local.yml @@ -10,7 +10,7 @@ services: image: chevdor/polkadot:latest volumes: - "polkadot-data-alice:/data" - command: polkadot --chain=local --validator --key Alice -d /data --node-key 0000000000000000000000000000000000000000000000000000000000000001 + command: polkadot --chain=polkadot-local --alice -d /data --node-key 0000000000000000000000000000000000000000000000000000000000000001 networks: testing_net: ipv4_address: 172.28.1.1 @@ -27,7 +27,7 @@ services: - "polkadot-data-bob:/data" links: - "node_alice:alice" - command: polkadot --chain=local --validator --key Bob -d /data --port 30344 --rpc-port 9935 --ws-port 9945 --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN' + command: polkadot --chain=polkadot-local --bob -d /data --port 30344 --rpc-port 9935 --ws-port 9945 --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR' networks: testing_net: ipv4_address: 172.28.1.2