Update step for getting private key in docs
This commit is contained in:
parent
e4803f0435
commit
fbdb598e79
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
||||
*-deployment
|
||||
*-spec.yml
|
||||
output
|
||||
|
||||
# Playbook vars
|
||||
*-vars.yml
|
||||
|
||||
@ -7,6 +7,14 @@
|
||||
|
||||
## Generate mainnet genesis file
|
||||
|
||||
- Get your private key from testnet deployment:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir <testnet-deployment-dir> exec laconicd "laconicd keys export <key-name> --unarmored-hex --unsafe"
|
||||
```
|
||||
|
||||
NOTE: Store this key securely as it is needed in later steps
|
||||
|
||||
- Stop the node for SAPO testnet:
|
||||
|
||||
```bash
|
||||
@ -63,15 +71,6 @@
|
||||
|
||||
## Run node
|
||||
|
||||
- Get your private key from testnet deployment:
|
||||
|
||||
```bash
|
||||
# Replace <testnet-deployment-dir> with the absolute path to the testnet deployment directory and <key-name> with the name of your key
|
||||
docker run -it \
|
||||
-v <testnet-deployment-dir>/data/laconicd-data:/root/.laconicd \
|
||||
cerc/laconicd:local bash -c "laconicd keys export <key-name> --unarmored-hex --unsafe"
|
||||
```
|
||||
|
||||
- Copy the example variables file if not already done:
|
||||
|
||||
```bash
|
||||
|
||||
@ -7,6 +7,14 @@
|
||||
|
||||
## Run node
|
||||
|
||||
- Get your private key from testnet deployment:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir <testnet-deployment-dir> exec laconicd "laconicd keys export <key-name> --unarmored-hex --unsafe"
|
||||
```
|
||||
|
||||
NOTE: Store this key securely as it is needed in later steps
|
||||
|
||||
- Stop the node for SAPO testnet:
|
||||
|
||||
```bash
|
||||
@ -63,15 +71,6 @@
|
||||
|
||||
## Create Validator
|
||||
|
||||
- Get your private key from testnet deployment:
|
||||
|
||||
```bash
|
||||
# Replace <testnet-deployment-dir> with the absolute path to the testnet deployment directory and <key-name> with the name of your key
|
||||
docker run -it \
|
||||
-v <testnet-deployment-dir>/data/laconicd-data:/root/.laconicd \
|
||||
cerc/laconicd:local bash -c "laconicd keys export <key-name> --unarmored-hex --unsafe"
|
||||
```
|
||||
|
||||
- Export required env vars:
|
||||
|
||||
```bash
|
||||
|
||||
@ -12,6 +12,16 @@ if [ ! -f "$staking_amount_file" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [-z "$KEY_NAME" ]; then
|
||||
echo "KEY_NAME environment variable not set, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$CERC_MONIKER" ]; then
|
||||
echo "CERC_MONIKER environment variable not set, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set staking amount
|
||||
stake_amount=$(jq -r '.common_staking_amount' "$staking_amount_file")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user