From 4461ee1ff00a93fb14967426c2f200628f5e2c30 Mon Sep 17 00:00:00 2001 From: shreerang Date: Tue, 19 Aug 2025 15:33:42 +0000 Subject: [PATCH] Update zenith stack version (#7) Part of `Milestone 4 (Staking & Delegation, Lockdrop)` Co-authored-by: Shreerang Kale Reviewed-on: https://git.vdb.to/LaconicNetwork/lockdrop-simulation/pulls/7 Co-authored-by: shreerang Co-committed-by: shreerang --- README.md | 8 ++++---- test-runs/README.md | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 55bd861..d6d44f8 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ The lockdrop simulation validates the Zenith Network's token distribution mechan - Set zenith-stack version to use: ```bash - ZENITH_STACK_VERSION=v0.2.11 + ZENITH_STACK_VERSION=v0.2.13 ``` Check [releases](https://git.vdb.to/LaconicNetwork/zenith-stack/releases) page for version history. @@ -106,7 +106,7 @@ The lockdrop simulation validates the Zenith Network's token distribution mechan git clone git@git.vdb.to:LaconicNetwork/lockdrop-simulation.git # Set repo directory path for further usage - LOCKDROP_SIMULATION_DIR=$(pwd)/lockdrop-simulation + export LOCKDROP_SIMULATION_DIR=$(pwd)/lockdrop-simulation ``` - **zenith-stack repository** @@ -117,7 +117,7 @@ The lockdrop simulation validates the Zenith Network's token distribution mechan git clone git@git.vdb.to:LaconicNetwork/zenith-stack.git # Set repo directory path for further usage - ZENITH_STACK_DIR=$(pwd)/zenith-stack + export ZENITH_STACK_DIR=$(pwd)/zenith-stack # Checkout to the required version cd $ZENITH_STACK_DIR @@ -253,7 +253,7 @@ First, create the data directory required for simulation (must be same as the pa # Make sure you are in ansible directory cd $ZENITH_STACK_DIR/ansible -DATA_DIRECTORY=$(grep 'data_directory:' inventories/development/group_vars/stage1.yml | awk '{print $2; exit}') +export DATA_DIRECTORY=$(grep 'data_directory:' inventories/development/group_vars/tge.yml | awk '{print $2; exit}') mkdir -p $DATA_DIRECTORY ``` diff --git a/test-runs/README.md b/test-runs/README.md index e671232..30ec6ab 100644 --- a/test-runs/README.md +++ b/test-runs/README.md @@ -60,7 +60,7 @@ To reproduce the results from any one of the test runs, follow these steps to ru - Set zenith-stack version to use: ```bash - ZENITH_STACK_VERSION=v0.2.11 + ZENITH_STACK_VERSION=v0.2.13 ``` Check [releases](https://git.vdb.to/LaconicNetwork/zenith-stack/releases) page for version history. @@ -73,7 +73,7 @@ To reproduce the results from any one of the test runs, follow these steps to ru git clone git@git.vdb.to:LaconicNetwork/lockdrop-simulation.git # Set repo directory path for further usage - LOCKDROP_SIMULATION_DIR=$(pwd)/lockdrop-simulation + export LOCKDROP_SIMULATION_DIR=$(pwd)/lockdrop-simulation ``` - **zenith-stack repository** @@ -84,7 +84,7 @@ To reproduce the results from any one of the test runs, follow these steps to ru git clone git@git.vdb.to:LaconicNetwork/zenith-stack.git # Set repo directory path for further usage - ZENITH_STACK_DIR=$(pwd)/zenith-stack + export ZENITH_STACK_DIR=$(pwd)/zenith-stack # Checkout to the required version cd $ZENITH_STACK_DIR @@ -182,12 +182,6 @@ This interactive tool will guide you through configuring all the necessary varia Example: https://eth.rpc.laconic.com/ ``` -- **Number of participants**: Total number of mock participants to generate for simulation (default: 400). - -- **Galaxy count**: Number of galaxies to allocate among participants - determines validator count in real scenario (default: 200). - -- **Star count**: Number of stars to allocate among participants - each participant needs at least 1 (default: 2000). - **Bootstrap Validator Configuration** - **Bootstrap validator data directory**: Absolute path to the parent directory where the bootstrap validator deployment will be created (**use the same parent directory as set for Genesis Generator**). @@ -217,7 +211,7 @@ First, create the data directory required for simulation (must be same as the pa # Make sure you are in ansible directory cd $ZENITH_STACK_DIR/ansible -DATA_DIRECTORY=$(grep 'data_directory:' inventories/development/group_vars/stage1.yml | awk '{print $2; exit}') +export DATA_DIRECTORY=$(grep 'data_directory:' inventories/development/group_vars/tge.yml | awk '{print $2; exit}') mkdir -p $DATA_DIRECTORY ``` @@ -228,6 +222,14 @@ Now, run required system setup (installs docker and laconic-so): zenith-ansible -i ./inventories/development/hosts.yml ./stage1-site.yml -e "mode=system-setup" -K --skip-tags onboarding ``` +If your machine did not have Docker installed before, the above command will install it. On Ubuntu, you will need to activate the `docker` group for your current shell: + +```bash +newgrp docker +``` + +This is a one time operation required to be performed after installing docker. + Setup the deployment directories and pull required docker images to generate base genesis file along with other artifacts: ```bash