Skip to content

Commit

Permalink
feat: implement override flag when creating clients (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya authored Aug 26, 2024
1 parent cfa5d4b commit 8c49a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ibc/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions relayer/rly/cosmos_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8c49a29

Please sign in to comment.