From 78fcfff36a698e9e442f99b49659f55e97662238 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 9 Oct 2024 12:02:25 +0000 Subject: [PATCH] Add config for laconicd chain ID (#15) Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) Co-authored-by: Nabarun Reviewed-on: https://git.vdb.to/cerc-io/fixturenet-laconicd-stack/pulls/15 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- .../compose/docker-compose-fixturenet-laconicd.yml | 1 + stack-orchestrator/stacks/fixturenet-laconicd/README.md | 3 +++ .../stacks/fixturenet-laconicd/scripts/genesis.sh | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stack-orchestrator/compose/docker-compose-fixturenet-laconicd.yml b/stack-orchestrator/compose/docker-compose-fixturenet-laconicd.yml index dbeee28..f560354 100644 --- a/stack-orchestrator/compose/docker-compose-fixturenet-laconicd.yml +++ b/stack-orchestrator/compose/docker-compose-fixturenet-laconicd.yml @@ -14,6 +14,7 @@ services: AUTHORITY_GRACE_PERIOD: ${AUTHORITY_GRACE_PERIOD} GENESIS_FILE: /var/tmp/genesis.json MONIKER: ${MONIKER:-localtestnet} + CHAINID: ${CHAINID:-laconic_9000-1} volumes: - laconicd-data:/root/.laconicd - genesis-config:/var/tmp diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/README.md b/stack-orchestrator/stacks/fixturenet-laconicd/README.md index e505c58..3018985 100644 --- a/stack-orchestrator/stacks/fixturenet-laconicd/README.md +++ b/stack-orchestrator/stacks/fixturenet-laconicd/README.md @@ -116,6 +116,9 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso # Node moniker (default: "localtestnet") MONIKER= + + # Chain ID of the network (default: "laconic_9000-1") + CHAINID= ``` * Inside the `laconic-console-deployment` deployment directory, open `config.env` file and set following env variables: diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh index 7ebaccb..1027bd9 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh @@ -6,8 +6,8 @@ set -u # Note: Needs to be run in a docker container with image cerc/laconicd:local -CHAINID="laconic_9000-1" -STAGE1_MONIKER=localtestnet-stage-1 +CHAINID=${CHAINID:-"laconic_9000-1"} +STAGE1_MONIKER=${MONIKER:-"localtestnet-stage-1"} NODE_HOME="/root/.laconicd" stage1_participants_file="$NODE_HOME/stage1-participants.json"