diff --git a/default.env b/default.env index db0fe546..b89f1e75 100644 --- a/default.env +++ b/default.env @@ -257,8 +257,8 @@ BESU_DOCKERFILE=Dockerfile.binary # SRC build target can be a tag, a branch, or a pr as "pr-ID" ERIGON_SRC_BUILD_TARGET='$(git describe --tags $(git rev-list --tags --max-count=1))' ERIGON_SRC_REPO=https://github.com/ledgerwatch/erigon -ERIGON_DOCKER_TAG=v2.60.6 -ERIGON_DOCKER_REPO=thorax/erigon +ERIGON_DOCKER_TAG=latest +ERIGON_DOCKER_REPO=erigontech/erigon ERIGON_DOCKERFILE=Dockerfile.binary # Nethermind diff --git a/erigon.yml b/erigon.yml index 4fe00f8c..4e3ae7ce 100644 --- a/erigon.yml +++ b/erigon.yml @@ -15,8 +15,8 @@ services: args: - BUILD_TARGET=${ERIGON_SRC_BUILD_TARGET:-'$(git describe --tags $(git rev-list --tags --max-count=1))'} - SRC_REPO=${ERIGON_SRC_REPO:-https://github.com/ledgerwatch/erigon} - - DOCKER_TAG=${ERIGON_DOCKER_TAG:-stable} - - DOCKER_REPO=${ERIGON_DOCKER_REPO:-thorax/erigon} + - DOCKER_TAG=${ERIGON_DOCKER_TAG:-latest} + - DOCKER_REPO=${ERIGON_DOCKER_REPO:-erigontech/erigon} stop_grace_period: 5m image: erigon:local pull_policy: never @@ -27,7 +27,7 @@ services: - ARCHIVE_NODE=${ARCHIVE_NODE:-} - NETWORK=${NETWORK} - IPV6=${IPV6:-false} - - DOCKER_TAG=${ERIGON_DOCKER_TAG:-stable} + - DOCKER_TAG=${ERIGON_DOCKER_TAG:-latest} - COMPOSE_FILE=${COMPOSE_FILE} - CL_P2P_PORT=${CL_P2P_PORT:-9000} - CL_REST_PORT=${CL_REST_PORT:-5052} diff --git a/erigon/Dockerfile.binary b/erigon/Dockerfile.binary index 13d7706f..26da6dff 100644 --- a/erigon/Dockerfile.binary +++ b/erigon/Dockerfile.binary @@ -1,5 +1,5 @@ -ARG DOCKER_TAG=stable -ARG DOCKER_REPO=thorax/erigon +ARG DOCKER_TAG=latest +ARG DOCKER_REPO=erigontech/erigon FROM ${DOCKER_REPO}:${DOCKER_TAG} diff --git a/ethd b/ethd index 5f21ad9e..6c0206fa 100755 --- a/ethd +++ b/ethd @@ -793,8 +793,7 @@ __delete_erigon() { __value=$(sed -n -e "s/^${__var}=\(.*\)/\1/p" "${__env_file}" || true) # I do mean to match literally # shellcheck disable=SC2076 -# if [[ ! ("${__value}" =~ "v3" || "${__value}" = "latest" || "${__value}" = "stable") ]]; then # No stable yet - if [[ ! ("${__value}" =~ "v3" || "${__value}" = "latest") ]]; then + if [[ ! ("${__value}" =~ "v3" || "${__value}" = "latest" || "${__value}" = "main-latest") ]]; then return 0 fi @@ -1116,8 +1115,11 @@ __env_migrate() { if [[ "${__var}" = "LH_DOCKER_TAG" && "${__value}" = "latest-modern" ]]; then # LH 5.2 ditched latest-modern __value="latest" fi - if [[ "${__var}" = "ERIGON_DOCKER_TAG" && "${__value}" = "stable" ]]; then # Erigon ditched stable - __value="v2.60.6" + if [[ "${__var}" = "ERIGON_DOCKER_TAG" && "${__value}" = "stable" ]]; then # Erigon switched to latest + __value="latest" + fi + if [[ "${__var}" = "ERIGON_DOCKER_REPO" && "${__value}" = "thorax/erigon" ]]; then # Erigon new repo + __value="erigontech/erigon" fi sed -i'.original' -e "s~^\(${__var}\s*=\s*\).*$~\1${__value}~" "${__env_file}" fi @@ -2756,6 +2758,7 @@ __query_execution_client() { EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \ "Which execution client do you want to run?" 9 65 2 \ "nethermind.yml" "Nethermind (.NET)" \ + "erigon.yml" "Erigon (Go)" \ "NONE" "Custom - Distributed" 3>&1 1>&2 2>&3) else EXECUTION_CLIENT=$(whiptail --notags --title "Select execution client" --menu \ @@ -2769,6 +2772,7 @@ __query_execution_client() { "Which execution client do you want to run?" 11 65 4 \ "besu.yml" "Besu (Java)" \ "nethermind.yml" "Nethermind (.NET)" \ + "erigon.yml" "Erigon (Go)" \ "geth.yml" "Geth (Go)" \ "NONE" "Custom - Distributed" 3>&1 1>&2 2>&3) elif uname -m | grep -q riscv64; then