From c49fbef33f082c42bb624ce000e94cf535f8eb25 Mon Sep 17 00:00:00 2001 From: pharr117 Date: Tue, 26 Dec 2023 18:22:48 -0500 Subject: [PATCH] Move off gov endpoint for health check, use base tendermint endpoint --- app.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app.py b/app.py index 203d65a..562a0c6 100644 --- a/app.py +++ b/app.py @@ -141,14 +141,7 @@ def is_endpoint_healthy(endpoint): # some chains dont implement the /health endpoint. Should we just skip /health and go directly to the below? if response.status_code == 501: response = requests.get( - f"{endpoint}/cosmos/gov/v1beta1/proposals?proposal_status=2", - timeout=1, - verify=False, - ) - - if response.status_code == 501: - response = requests.get( - f"{endpoint}/cosmos/upgrade/v1beta1/current_plan", + f"{endpoint}/cosmos/base/tendermint/v1beta1/node_info", timeout=1, verify=False, )