Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmichel authored Mar 19, 2020
1 parent ae173f6 commit 40d5f38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ TODO

### Multi-node local testnet

This will create 2 validator accounts - `//Armstrong` and `//Aldrin` - on genesis. To be able to finalize blocks, Grandpa requires a min. of 2/3 of the validators to cast finality votes over a produced block, so we need to run both nodes.
This will create 3 validator accounts - `//Armstrong`, `//Aldrin` and `//Collins` - on genesis. To be able to finalize blocks, Grandpa requires more than 2/3 of the validators to cast finality votes over a produced block, so we need to run all 3 nodes.

```bash
cd scripts/staging
./build-spec.sh
```
Two files - `spec.json` and `rawspec.json` - are created.

Next, execute `./run-node-armstrong.sh` and `./run-node-aldrin.sh` in two separate terminals.
Next, execute `./run-node-armstrong.sh`, `./run-node-aldrin.sh` and `./run-node-collins.sh` in separate terminals.

> At this moment the chain *should* work as expected. However you will notice that blocks are not being produced.
>
> We are injecting `SessionKeys` on the `pallet_session` GenesisConfig. Theory says that should set the session keys on boot and start validating right away. Further investigation needs to be done to determine why it does not work and how to fix it. Proceed with the next steps to inject the keys manually.
Next, with both nodes running, manually inject the Public keys to the keystore using the `./set-keys.sh` helper script. Be aware that this assumes you are on a Unix machine. `subkey`, `curl`, `grep` and `cut` commands must be available in your environment to execute it.
Next, with all nodes running, manually inject the Public keys to the keystore using the `./set-keys.sh` helper script. Be aware that this assumes you are on a Unix machine. `subkey`, `curl`, `grep` and `cut` commands must be available in your environment to execute it.

> Confirmed by Joshy, **is not possible** to make effective the underlying `author_insertKey` rpc we just made without restarting the nodes. So we need to:
Restart both nodes.
Restart all nodes.

They are now producing blocks and finalizing them.

Expand Down

0 comments on commit 40d5f38

Please sign in to comment.