From e5d47fd27a1d6cf1c0164ad9550e988f32258f74 Mon Sep 17 00:00:00 2001 From: Julia Ortiz <94128293+julia-script@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:38:13 -0300 Subject: [PATCH] Rename gravity identifier (#102) --- cronjobs/constants.py | 8 ++++---- cronjobs/cron.py | 2 +- cronjobs/scripts/entrypoint.sh | 3 ++- internal/v1/constants/networks.go | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cronjobs/constants.py b/cronjobs/constants.py index f9c5a1d..91508e2 100644 --- a/cronjobs/constants.py +++ b/cronjobs/constants.py @@ -1,6 +1,6 @@ -# Copyright Tharsis Labs Ltd.(Evmos) -# SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/backend/blob/main/LICENSE) - +# Copyright Tharsis Labs Ltd.(Evmos) +# SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/backend/blob/main/LICENSE) + from __future__ import annotations import os @@ -15,7 +15,7 @@ INDEXING_DISABLED_ERROR = "transaction indexing is disabled" class Networks(Enum): - GRAV = 'GRAVITY' + GRAV = 'GRAVITYBRIDGE' EVMOS = 'EVMOS' OSMOSIS = 'OSMOSIS' COSMOS = 'COSMOS' diff --git a/cronjobs/cron.py b/cronjobs/cron.py index 45c0fb9..d4300ec 100644 --- a/cronjobs/cron.py +++ b/cronjobs/cron.py @@ -127,7 +127,7 @@ def ping_rest(endpoint: str, rest_list: EndpointSafeList, tendermint_exposed=Tru def process_chain(chain: str, chain_info): - tendermint_exposed = chain != 'GRAVITY' + tendermint_exposed = chain != 'GRAVITYBRIDGE' rest_threads = [] rest_list = EndpointSafeList() for rest in chain_info[chain]['rest']: diff --git a/cronjobs/scripts/entrypoint.sh b/cronjobs/scripts/entrypoint.sh index 8ba7b40..2a8d752 100755 --- a/cronjobs/scripts/entrypoint.sh +++ b/cronjobs/scripts/entrypoint.sh @@ -19,4 +19,5 @@ do fi sleep 2 done -python $1.py + +python -u $1.py diff --git a/internal/v1/constants/networks.go b/internal/v1/constants/networks.go index 73c2b34..4e33f67 100644 --- a/internal/v1/constants/networks.go +++ b/internal/v1/constants/networks.go @@ -4,7 +4,7 @@ package constants const ( - GRAV = "GRAVITY" + GRAV = "GRAVITYBRIDGE" EVMOS = "EVMOS" OSMOSIS = "OSMOSIS" COSMOS = "COSMOS"