From 399d0eaa64462c85f74ffebf56e226159b42149c Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Sat, 8 Jul 2023 22:04:05 +0100 Subject: [PATCH] Increase default timeout to 30s. --- CHANGELOG.md | 3 ++- cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b1a6c..8962780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -dev: +1.32.0: - fix incorrect error when "deposit verify" is not given a withdrawal address - allow truncated mnemonics (first four characters of each word) - add deneb information to "block info" @@ -6,6 +6,7 @@ dev: - add proposer index to "block info" - "block info" honours "--quiet" flag - "block info" accepts "--block-time" option + - increase default operation timeout from 10s to 30s 1.31.0: - initial support for deneb diff --git a/cmd/root.go b/cmd/root.go index 2c48a4e..b3738f0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -223,7 +223,7 @@ func addPersistentFlags() { if err := viper.BindPFlag("connection", RootCmd.PersistentFlags().Lookup("connection")); err != nil { panic(err) } - RootCmd.PersistentFlags().Duration("timeout", 10*time.Second, "the time after which a network request will be considered failed. Increase this if you are running on an error-prone, high-latency or low-bandwidth connection") + RootCmd.PersistentFlags().Duration("timeout", 30*time.Second, "the time after which a network request will be considered failed. Increase this if you are running on an error-prone, high-latency or low-bandwidth connection") if err := viper.BindPFlag("timeout", RootCmd.PersistentFlags().Lookup("timeout")); err != nil { panic(err) }