From b068d21cec675505d99321bf49042b782a1e99ab Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Thu, 15 May 2025 16:33:32 +0530 Subject: [PATCH] Update generated genesis file permission --- run-first-validator.md | 10 +++++++++- run-validator.md | 8 ++++++++ .../mainnet-laconicd/create-and-collect-gentx.sh | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/run-first-validator.md b/run-first-validator.md index a437ff2..b798119 100644 --- a/run-first-validator.md +++ b/run-first-validator.md @@ -5,6 +5,14 @@ - [ansible](playbooks/README.md#ansible-installation) - [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install) +## Stop testnet node + +- Stop the testnet node: + + ```bash + laconic-so deployment --dir stop + ``` + ## Generate mainnet genesis file - Fetch the stack in machine where the testnet chain node is running: @@ -115,7 +123,7 @@ - Copy the genesis file to [genesis](./genesis) folder: ```bash - sudo cp $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR/data/laconicd-data/config/genesis.json ./genesis/mainnet-genesis.json + sudo cp $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR/data/laconicd-data/config/genesis.json ~/cerc/laconicd-stack/genesis/mainnet-genesis.json ``` - Get your node's address: diff --git a/run-validator.md b/run-validator.md index ca63468..5126284 100644 --- a/run-validator.md +++ b/run-validator.md @@ -5,6 +5,14 @@ - [ansible](playbooks/README.md#ansible-installation) - [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install) +## Stop testnet node + +- Stop the testnet node: + + ```bash + laconic-so deployment --dir stop + ``` + ## Run node - Fetch the stack: diff --git a/stack-orchestrator/config/mainnet-laconicd/create-and-collect-gentx.sh b/stack-orchestrator/config/mainnet-laconicd/create-and-collect-gentx.sh index 122cc49..1e1e111 100755 --- a/stack-orchestrator/config/mainnet-laconicd/create-and-collect-gentx.sh +++ b/stack-orchestrator/config/mainnet-laconicd/create-and-collect-gentx.sh @@ -63,5 +63,7 @@ laconicd genesis gentx $KEY_NAME $stake_amount$DENOM --chain-id $CHAIN_ID --keyr laconicd genesis collect-gentxs laconicd genesis validate +chmod 777 $genesis_file_path + # Update the input genesis file cp $genesis_file_path $input_genesis_file