From 8c49a293d23fec56f1bc1f7b344cc0711845ebfb Mon Sep 17 00:00:00 2001 From: Dan Kanefsky <56059752+boojamya@users.noreply.github.com> Date: Mon, 26 Aug 2024 16:00:45 -0700 Subject: [PATCH] feat: implement override flag when creating clients (#1237) --- 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 }