From 8a15bd78323c12894a39e6fdcb6c3d10af3174a3 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 18 Jun 2024 17:16:18 +0530 Subject: [PATCH] Update instructions to use inbuilt deployment exec command --- .../stacks/laconicd-full-node/README.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/stack-orchestrator/stacks/laconicd-full-node/README.md b/stack-orchestrator/stacks/laconicd-full-node/README.md index a04f673..5f2a959 100644 --- a/stack-orchestrator/stacks/laconicd-full-node/README.md +++ b/stack-orchestrator/stacks/laconicd-full-node/README.md @@ -113,14 +113,16 @@ laconic-so deployment --dir laconic-full-node-deployment start # Get laconicd container id in a variable LACONICD_CONTAINER_ID=$(docker ps --filter "name=laconicd" -q) - # Check logs for laconicd container - docker logs -f $LACONICD_CONTAINER_ID + # Follow logs for laconicd container + laconic-so deployment --dir laconic-full-node-deployment logs laconicd -f ``` * Check the sync status of your node: ```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 @@ -129,15 +131,15 @@ laconic-so deployment --dir laconic-full-node-deployment start ```bash # Create new keypair - docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add " + laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys add " # OR # Restore existing key with mnemonic seed phrase # You will be prompted to enter mnemonic seed - docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add --recover" + laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys add --recover" # Query the keystore for your account's address - docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys show -a" + laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd keys show -a" ``` * Request tokens from the testnet faucet for your account if required @@ -145,14 +147,14 @@ laconic-so deployment --dir laconic-full-node-deployment start * Check balance for your account: ```bash - docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query bank balances " + laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd query bank balances " ``` * Create required validator configuration: ```bash # Edit the staking amount and other fields as required - docker exec -it $LACONICD_CONTAINER_ID bash -c 'cat < -validator.json + laconic-so deployment --dir laconic-full-node-deployment exec laconicd 'cat < -validator.json { "pubkey": $(laconicd cometbft show-validator), "amount": "900000000photon", @@ -168,16 +170,16 @@ laconic-so deployment --dir laconic-full-node-deployment start * Create a validator: ```bash - docker exec -it $LACONICD_CONTAINER_ID bash -c 'laconicd tx staking create-validator -validator.json \ + laconic-so deployment --dir laconic-full-node-deployment exec laconicd 'laconicd tx staking create-validator -validator.json \ --fees 50photon \ --chain-id=laconic_9000-1 \ --from ' ``` -* View staking validator details: +* View your staking validator details: ```bash - docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query staking validator " + laconic-so deployment --dir laconic-full-node-deployment exec laconicd "laconicd query staking validator " ``` ## Clean up