From ae205b59b6ad6c51ea234b4aada786998c95009e Mon Sep 17 00:00:00 2001 From: Grant Zukel <80433392+gzukel@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:51:50 -0600 Subject: [PATCH] fix: updated docker start script to always download non-exist cosmovisor binaries from the binary_list. (#1894) * fix: adding download binaries to the docker start script so it will always download the binaries if they don't exist that way we can update node without doing anything but restarting --- changelog.md | 1 + contrib/docker-scripts/start.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/changelog.md b/changelog.md index bd557c549a..b5325bf873 100644 --- a/changelog.md +++ b/changelog.md @@ -49,6 +49,7 @@ * [1867](https://github.com/zeta-chain/node/pull/1867) - default restore_type for full node docker-compose to snapshot instead of statesync for reliability. * [1891](https://github.com/zeta-chain/node/pull/1891) - fix typo that was introduced to docker-compose and a typo in start.sh for the docker start script for full nodes. +* [1894](https://github.com/zeta-chain/node/pull/1894) - added download binaries and configs to the start sequence so it will download binaries that don't exist ## Version: v14 diff --git a/contrib/docker-scripts/start.sh b/contrib/docker-scripts/start.sh index a05298fc92..d60f131c2c 100644 --- a/contrib/docker-scripts/start.sh +++ b/contrib/docker-scripts/start.sh @@ -250,6 +250,12 @@ load_defaults if [[ -f "${DAEMON_HOME}/start_sequence_status" ]] && grep -q "START_SEQUENCE_COMPLETE" "${DAEMON_HOME}/start_sequence_status" && [[ "$RE_DO_START_SEQUENCE" != "true" ]]; then logt "The start sequence is complete and no redo is required." + logt "Download Configs" + download_configs + + logt "Download Historical Binaries" + download_binary_version + if [ "${RESTORE_TYPE}" == "statesync" ]; then logt "Setup Restore Type: ${RESTORE_TYPE}" logt "During restarts, we re-do this to ensure to update the configs with valid values. When you call change config the stuff that gets set in this function for statesync needs to be set. Doesn't effect to re-set this."