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"