Skip to content

Commit

Permalink
update local chain name in docker-compose and docu
Browse files Browse the repository at this point in the history
the name of a local network changed from local to polkadot-local so
some local test environments were broken and the ticket paritytech#965 was
created
  • Loading branch information
Christian Seidemann committed Apr 20, 2020
1 parent 0353c97 commit ab3d9e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 --validator --key 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 --validator --key 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.
Expand Down
4 changes: 2 additions & 2 deletions doc/networks/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 --validator --key 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 --validator --key 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
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --validator --name Alice -d /data --node-key 0000000000000000000000000000000000000000000000000000000000000001
networks:
testing_net:
ipv4_address: 172.28.1.1
Expand All @@ -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 --validator --name 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
Expand Down

0 comments on commit ab3d9e0

Please sign in to comment.