Skip to content

Commit

Permalink
fix: update timeout commit value to 5s (#410)
Browse files Browse the repository at this point in the history
* fix: update timeout commit value to 5s

* ci: increase upgrade height to happen 8 hours later
  • Loading branch information
cosmic-vagabond authored Mar 18, 2024
1 parent a33d906 commit 3c84c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# helper functions
extract_txhash() { awk -F 'txhash: ' '/txhash:/{print $2; exit}'; }
extract_proposal_id() { awk -F 'key: proposal_id|value: ' '/key: proposal_id/ { getline; gsub(/"/, "", $2); print $2; exit }'; }
extract_and_calc_upgrade_height() { awk -F'"latest_block_height":"' '{ split($2,a,"\""); print a[1]+2000; exit }'; }
extract_and_calc_upgrade_height() { awk -F'"latest_block_height":"' '{ split($2,a,"\""); print a[1]+8000; exit }'; }
extract_checksum() { awk "/elysd-${{ github.ref_name }}-linux-amd64.tar.gz/ {print \$1; exit}"; }
# environment variables
Expand Down
2 changes: 1 addition & 1 deletion cmd/elysd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
customTMConfig := initTendermintConfig()

// override the default timeout commit value
customTMConfig.Consensus.TimeoutCommit = 3000 * time.Millisecond
customTMConfig.Consensus.TimeoutCommit = 5000 * time.Millisecond

return server.InterceptConfigsPreRunHandler(
cmd, customAppTemplate, customAppConfig, customTMConfig,
Expand Down

0 comments on commit 3c84c6e

Please sign in to comment.