From 69329500d825af5095544d53d4e96e197cd05db3 Mon Sep 17 00:00:00 2001 From: Grant Zukel Date: Mon, 18 Sep 2023 13:09:36 -0600 Subject: [PATCH] updates --- .github/actions/upgrade-testing/scripts/raise_gov_proposal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/upgrade-testing/scripts/raise_gov_proposal.py b/.github/actions/upgrade-testing/scripts/raise_gov_proposal.py index 48ca654344..247c4c9e96 100644 --- a/.github/actions/upgrade-testing/scripts/raise_gov_proposal.py +++ b/.github/actions/upgrade-testing/scripts/raise_gov_proposal.py @@ -2,7 +2,7 @@ import requests os.environ['NODE'] = "http://127.0.0.1:26657" CURRENT_HEIGHT = requests.get(f"{os.environ['NODE']}/status").json()["result"]["sync_info"]["latest_block_height"] -UPGRADE_HEIGHT = int(CURRENT_HEIGHT) + (int(os.environ['PROPOSAL_TIME_SECONDS']) / int(os.environ['BLOCK_TIME_SECONDS'])) + 50 +UPGRADE_HEIGHT = int(CURRENT_HEIGHT) + (int(os.environ['PROPOSAL_TIME_SECONDS']) / int(os.environ['BLOCK_TIME_SECONDS'])) + 20 github_file = open(os.environ["GITHUB_ENV"], "a+") github_file.write(f"UPGRADE_HEIGHT={UPGRADE_HEIGHT}") github_file.close()