Update instructions to use inbuilt deployment exec command
This commit is contained in:
parent
b2256d0466
commit
8bae6536a6
@ -110,17 +110,16 @@ laconic-so deployment --dir laconic-full-node-deployment start
|
|||||||
# With status
|
# With status
|
||||||
docker ps -a
|
docker ps -a
|
||||||
|
|
||||||
# Get laconicd container id in a variable
|
# Follow logs for laconicd container
|
||||||
LACONICD_CONTAINER_ID=$(docker ps --filter "name=laconicd" -q)
|
laconic-so deployment --dir laconic-full-node-deployment logs laconicd -f
|
||||||
|
|
||||||
# Check logs for laconicd container
|
|
||||||
docker logs -f $LACONICD_CONTAINER_ID
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* Check the sync status of your node:
|
* Check the sync status of your node:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd status | jq .sync_info"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd status | jq .sync_info"
|
||||||
|
|
||||||
|
# `catching_up: false` indicates that node is completely synced
|
||||||
```
|
```
|
||||||
|
|
||||||
## Join as testnet validator
|
## Join as testnet validator
|
||||||
@ -129,15 +128,15 @@ laconic-so deployment --dir laconic-full-node-deployment start
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Create new keypair
|
# Create new keypair
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add <key-name>"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys add <key-name>"
|
||||||
|
|
||||||
# OR
|
# OR
|
||||||
# Restore existing key with mnemonic seed phrase
|
# Restore existing key with mnemonic seed phrase
|
||||||
# You will be prompted to enter mnemonic seed
|
# You will be prompted to enter mnemonic seed
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add <key-name> --recover"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys add <key-name> --recover"
|
||||||
|
|
||||||
# Query the keystore for your account's address
|
# Query the keystore for your account's address
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys show <key-name> -a"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys show <key-name> -a"
|
||||||
```
|
```
|
||||||
|
|
||||||
* Request tokens from the testnet faucet for your account if required
|
* Request tokens from the testnet faucet for your account if required
|
||||||
@ -145,14 +144,14 @@ laconic-so deployment --dir laconic-full-node-deployment start
|
|||||||
* Check balance for your account:
|
* Check balance for your account:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query bank balances <key-name>"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd query bank balances <key-name>"
|
||||||
```
|
```
|
||||||
|
|
||||||
* Create required validator configuration:
|
* Create required validator configuration:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Edit the staking amount and other fields as required
|
# Edit the staking amount and other fields as required
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c 'cat <<EOF > <your-node-moniker>-validator.json
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd 'cat <<EOF > <your-node-moniker>-validator.json
|
||||||
{
|
{
|
||||||
"pubkey": $(laconicd cometbft show-validator),
|
"pubkey": $(laconicd cometbft show-validator),
|
||||||
"amount": "900000000photon",
|
"amount": "900000000photon",
|
||||||
@ -168,16 +167,16 @@ laconic-so deployment --dir laconic-full-node-deployment start
|
|||||||
* Create a validator:
|
* Create a validator:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c 'laconicd tx staking create-validator <your-node-moniker>-validator.json \
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd 'laconicd tx staking create-validator <your-node-moniker>-validator.json \
|
||||||
--fees 50photon \
|
--fees 50photon \
|
||||||
--chain-id=laconic_9000-1 \
|
--chain-id=laconic_9000-1 \
|
||||||
--from <key-name>'
|
--from <key-name>'
|
||||||
```
|
```
|
||||||
|
|
||||||
* View staking validator details:
|
* View your staking validator details:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query staking validator <key-name>"
|
laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd query staking validator <key-name>"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Clean up
|
## Clean up
|
||||||
|
Loading…
Reference in New Issue
Block a user