Skip to content

Commit

Permalink
chore: update channel upgrades default timeout to 10 mins (#5433)
Browse files Browse the repository at this point in the history
* chore: update channel upgrades default timeout to 10 mins

* chore: make lint-fix
  • Loading branch information
damiannolan authored Dec 18, 2023
1 parent c88abcc commit 7967cfd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/core/04-channel/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
)

// TODO: determine sane default value for upgrade timeout.

var DefaultTimeout = NewTimeout(clienttypes.ZeroHeight(), uint64(time.Hour.Nanoseconds()))
// DefaultTimeout defines a default parameter for the channel upgrade protocol.
// It allows relayers a window in which they can flush all in-flight packets on a channel before completing the upgrade handshake.
// This parameter can be overridden by a valid authority using the UpdateChannelParams rpc.
var DefaultTimeout = NewTimeout(clienttypes.ZeroHeight(), uint64(10*time.Minute.Nanoseconds()))

// NewParams creates a new parameter configuration for the channel submodule
func NewParams(upgradeTimeout Timeout) Params {
Expand Down

0 comments on commit 7967cfd

Please sign in to comment.