Skip to content

Commit

Permalink
fix: updated docker start script to always download non-exist cosmovi…
Browse files Browse the repository at this point in the history
…sor 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
  • Loading branch information
gzukel authored Mar 13, 2024
1 parent 67b6a9c commit ae205b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions contrib/docker-scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit ae205b5

Please sign in to comment.