Skip to content

Commit

Permalink
Move off gov endpoint for health check, use base tendermint endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Dec 26, 2023
1 parent ce43bb6 commit c49fbef
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit c49fbef

Please sign in to comment.