From a1cb2455a1e4077b2d407266e8d891d5709b37a8 Mon Sep 17 00:00:00 2001 From: goldsquid Date: Sun, 28 Dec 2025 16:38:59 +0700 Subject: [PATCH] fix --- .../geth/zero-gravity-aristotle-geth-pruned-pebble-path.yml | 3 +++ .../geth/zero-gravity-galileo-geth-pruned-pebble-path.yml | 3 +++ zero-gravity/scripts/init.sh | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/zero-gravity/geth/zero-gravity-aristotle-geth-pruned-pebble-path.yml b/zero-gravity/geth/zero-gravity-aristotle-geth-pruned-pebble-path.yml index f752a470..7a030d2e 100644 --- a/zero-gravity/geth/zero-gravity-aristotle-geth-pruned-pebble-path.yml +++ b/zero-gravity/geth/zero-gravity-aristotle-geth-pruned-pebble-path.yml @@ -58,6 +58,8 @@ services: - 8545 - 6060 - 8551 + environment: + - CHAIN_NAME=aristotle entrypoint: [/usr/local/bin/init.sh, geth] command: - --bootnodes=enode://2bf74c837a98c94ad0fa8f5c58a428237d2040f9269fe622c3dbe4fef68141c28e2097d7af6ebaa041194257543dc112514238361a6498f9a38f70fd56493f96@8.221.140.134:30303 @@ -121,6 +123,7 @@ services: - 19914:19914 - 19914:19914/udp environment: + - CHAIN_NAME=aristotle - IP=${IP} - MONIKER=d${DOMAIN:-local} entrypoint: [/usr/local/bin/init.sh, 0gchaind, start] diff --git a/zero-gravity/geth/zero-gravity-galileo-geth-pruned-pebble-path.yml b/zero-gravity/geth/zero-gravity-galileo-geth-pruned-pebble-path.yml index a37bf1d4..50b1c793 100644 --- a/zero-gravity/geth/zero-gravity-galileo-geth-pruned-pebble-path.yml +++ b/zero-gravity/geth/zero-gravity-galileo-geth-pruned-pebble-path.yml @@ -58,6 +58,8 @@ services: - 8545 - 6060 - 8551 + environment: + - CHAIN_NAME=galileo entrypoint: [/usr/local/bin/init.sh, geth] command: - --bootnodes=enode://de7b86d8ac452b1413983049c20eafa2ea0851a3219c2cc12649b971c1677bd83fe24c5331e078471e52a94d95e8cde84cb9d866574fec957124e57ac6056699@8.218.88.60:30303 @@ -121,6 +123,7 @@ services: - 16172:16172 - 16172:16172/udp environment: + - CHAIN_NAME=galileo - IP=${IP} - MONIKER=d${DOMAIN:-local} entrypoint: [/usr/local/bin/init.sh, 0gchaind, start] diff --git a/zero-gravity/scripts/init.sh b/zero-gravity/scripts/init.sh index f0e05726..0fba5c77 100644 --- a/zero-gravity/scripts/init.sh +++ b/zero-gravity/scripts/init.sh @@ -45,7 +45,11 @@ DATA_DIR="$HOME_DIR/data" mkdir -p $CONFIG_DIR mkdir -p $DATA_DIR -CHAIN_SPEC=devnet +if [ "$CHAIN_NAME" = "galileo" ]; then + CHAIN_SPEC=galileo +else + CHAIN_SPEC=mainney +fi env # seems to be the same for all the 0g chains