From 85ce1fd2d133ef93816086ad2e72a6b36d413dd3 Mon Sep 17 00:00:00 2001 From: Dan Kanefsky Date: Mon, 26 Aug 2024 14:33:11 -0700 Subject: [PATCH] feat: implement override flag when creating clients --- ibc/relayer.go | 1 + relayer/rly/cosmos_relayer.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ibc/relayer.go b/ibc/relayer.go index 081490a2b..0739f16df 100644 --- a/ibc/relayer.go +++ b/ibc/relayer.go @@ -279,6 +279,7 @@ type CreateClientOptions struct { TrustingPeriod string TrustingPeriodPercentage int64 // only available for Go Relayer MaxClockDrift string + Override bool // only available for Go Relayer } // DefaultClientOpts returns the default settings for creating clients. diff --git a/relayer/rly/cosmos_relayer.go b/relayer/rly/cosmos_relayer.go index fb8268125..d6debbcf8 100644 --- a/relayer/rly/cosmos_relayer.go +++ b/relayer/rly/cosmos_relayer.go @@ -152,6 +152,9 @@ func createClientOptsHelper(opts ibc.CreateClientOptions) []string { if opts.MaxClockDrift != "" { clientOptions = append(clientOptions, "--max-clock-drift", opts.MaxClockDrift) } + if opts.Override { + clientOptions = append(clientOptions, "--override") + } return clientOptions }