From 4afa02280264cf8c984d33ae664cec319487d887 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Mon, 4 Sep 2023 08:12:40 +0000 Subject: [PATCH] Fix Erigon network detection --- erigon/docker-entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erigon/docker-entrypoint.sh b/erigon/docker-entrypoint.sh index 1abb1083..9a159ece 100755 --- a/erigon/docker-entrypoint.sh +++ b/erigon/docker-entrypoint.sh @@ -61,16 +61,16 @@ if [ "${ARCHIVE_NODE}" = "true" ]; then echo "Erigon archive node without pruning" __prune="" else - if [[ "$*" =~ "--chain mainnet" ]]; then + if [[ "${NETWORK}" = "mainnet" ]]; then echo "mainnet: Running with prune.r.before=11052984 for eth deposit contract" __prune="--prune=htc --prune.r.before=11052984" - elif [[ "$*" =~ "--chain goerli" ]]; then + elif [[ "${NETWORK}" = "goerli" ]]; then echo "goerli: Running with prune.r.before=4367322 for eth deposit contract" __prune="--prune=htc --prune.r.before=4367322" - elif [[ "$*" =~ "--chain sepolia" ]]; then + elif [[ "${NETWORK}" = "sepolia" ]]; then echo "sepolia: Running with prune.r.before=1273020 for eth deposit contract" __prune="--prune=htc --prune.r.before=1273020" - elif [[ "$*" =~ "--chain gnosis" ]]; then + elif [[ "${NETWORK}" = "gnosis" ]]; then echo "gnosis: Running with prune.r.before=19469077 for gno deposit contract" __prune="--prune=htc --prune.r.before=19469077" else