Skip to content

Commit

Permalink
Merge pull request #206 from luguslabs/dev
Browse files Browse the repository at this point in the history
merge #202 #199 #203
  • Loading branch information
branciard authored Apr 14, 2020
2 parents 7a3a34b + 5540f8a commit 105f90b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
6 changes: 3 additions & 3 deletions deployer/archipel/start-chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then
fi

#unpack config file
if [ ! -f "/config/config.json" ]; then
if [ -f "/config/archipel-config.zip" ]; then
#if config file password was set unzip with password
if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then
unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
else
unzip -o /config/archipel-config.zip -d /config
unzip -f -o /config/archipel-config.zip -d /config
fi
#check unzip command
check_cmd $? 'unzip config file'
Expand Down
6 changes: 3 additions & 3 deletions deployer/archipel/start-orchestrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then
fi

#unpack config file
if [ ! -f "/config/config.json" ]; then
if [ -f "/config/archipel-config.zip" ]; then
#if config file password was set unzip with password
if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then
unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
else
unzip -o /config/archipel-config.zip -d /config
unzip -f -o /config/archipel-config.zip -d /config
fi
#check unzip command
check_cmd $? 'unzip config file'
Expand Down
6 changes: 3 additions & 3 deletions deployer/archipel/start-wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then
fi

#unpack config file
if [ ! -f "/config/config.json" ]; then
if [ -f "/config/archipel-config.zip" ]; then
#if config file password was set unzip with password
if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then
unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config
else
unzip -o /config/archipel-config.zip -d /config
unzip -f -o /config/archipel-config.zip -d /config
fi
#check unzip command
check_cmd $? 'unzip config file'
Expand Down
26 changes: 25 additions & 1 deletion doc/polkadot-keys-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,28 @@ Here how to extract the value from env varibale :

```bash
export ROTATE_KEY=$(cat kusama-session-gran-ed25519.keys | grep Public | cut -d":" -f2)$(cat kusama-session-babe-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-imon-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-para-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-audi-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)
```
```

### Check 5 sesssion keys correctly installed on your node with ROTATE_KEY value check

Connect to the container polkadot like this:

```bash
docker exec -it kusama-data-polkadot-synch sh
```

Export the ROTATE_KEY you want to verify as well install in your node :

```bash
export ROTATE_KEY=0x00000000000000000001....
echo $ROTATE_KEY
```

Call of `author_hasSessionKeys` must return true.

```bash
> curl http://localhost:9993 -H 'Content-Type:application/json;charset=utf-8' -d "{\"jsonrpc\":\"2.0\",\"id\":1, \"method\":\"author_hasSessionKeys\", \"params\": [\"$ROTATE_KEY\"]}"
> {"jsonrpc":"2.0","result":true,"id":1}
```

Check on you 3 Archipel polkadot running nodes. If all nodes are ready to operate on this sessions key, you are now confident to [Submitting the setKeys Transaction](https://wiki.polkadot.network/docs/en/maintain-guides-how-to-validate-kusama#submitting-the-setkeys-transaction).

0 comments on commit 105f90b

Please sign in to comment.